Skip to content
Snippets Groups Projects
Commit f98b452f authored by Steven Murray's avatar Steven Murray
Browse files

Renamed PRTBUFSZ of rmc to RMC_PRTBUFSZ

parent b0c335e1
No related branches found
No related tags found
No related merge requests found
......@@ -17,11 +17,9 @@
#include "osdep.h"
#include "rmc_constants.h"
#define RMC_CHECKI 5 /* max interval to check for work to be done */
#define MAXRETRY 5
#define RETRYI 60
#define LOGBUFSZ 1024
#define PRTBUFSZ 180
#define REPBUFSZ 524288 /* must be >= max media changer server reply size */
#define REQBUFSZ 256 /* must be >= max media changer server request size */
#define RMC_MAGIC 0x120D0301
......
......@@ -14,6 +14,9 @@
#define _RMC_CONSTANTS_H
#include "Castor_limits.h"
#define RMC_CHECKI 5 /* max interval to check for work to be done */
#define RMC_PRTBUFSZ 180
#define RMC_PORT 5014
/* SCSI media changer utilities exit codes */
......
......@@ -28,7 +28,7 @@ rmc_seterrbuf(char *buffer,
int rmc_errmsg(char *func, char *msg, ...)
{
va_list args;
char prtbuf[PRTBUFSZ];
char prtbuf[RMC_PRTBUFSZ];
int save_errno;
save_errno = errno;
......
......@@ -22,7 +22,7 @@ int rmc_sendrep(const int rpfd, const int rep_type, ...)
char func[16];
char *msg;
int n;
char prtbuf[PRTBUFSZ];
char prtbuf[RMC_PRTBUFSZ];
char *rbp;
int rc;
char repbuf[REPBUFSZ];
......
......@@ -13,6 +13,7 @@
#include <sys/types.h>
#include "h/Ctape.h"
#include "h/rmc_constants.h"
#include "h/rmc_sendrep.h"
#include "h/rmc_smcsubr.h"
#include "h/rmc_smcsubr2.h"
......@@ -620,7 +621,7 @@ static int rmc_usrmsg(
...)
{
va_list args;
char prtbuf[PRTBUFSZ];
char prtbuf[RMC_PRTBUFSZ];
const int save_errno = errno;
va_start (args, msg);
......
......@@ -17,7 +17,7 @@ extern int jid;
int rmclogit(const char *const func, const char *const msg, ...)
{
va_list args;
char prtbuf[PRTBUFSZ];
char prtbuf[RMC_PRTBUFSZ];
int save_errno;
struct tm *tm;
time_t current_time;
......
......@@ -35,7 +35,7 @@ int send2rmc(
int magic;
int n;
char *p;
char prtbuf[PRTBUFSZ];
char prtbuf[RMC_PRTBUFSZ];
int rep_type;
char repbuf[REPBUFSZ];
char rmchost[CA_MAXHOSTNAMELEN+1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment