955274: DMAPI qa test fixes

Merge of master-melb:xfs-cmds:27241a by kenmcd.

  avoid negative number LONG_MAX + 1
This commit is contained in:
Vlad Apostolov
2006-10-19 06:08:45 +00:00
parent 7dcf3ce6f9
commit 11cced490a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -33,8 +33,8 @@
#include <getopt.h>
#define NUMLEN 16 /* arbitrary max len of input size */
#define MAX_K (((u_int)LONG_MAX + 1) / 1024)
#define MAX_M (((u_int)LONG_MAX + 1) / (1024*1024))
#define MAX_K (((u_int)LONG_MAX) / 1024)
#define MAX_M (((u_int)LONG_MAX) / (1024*1024))
+1 -1
View File
@@ -261,7 +261,7 @@ spawn_kid(
WORKER_BEE, WORKER_BEE, action, sidbuf,
tokenbuf);
}
execlp(WORKER_BEE, WORKER_BEE, action, "-s", sidbuf,
execlp("./"WORKER_BEE, WORKER_BEE, action, "-s", sidbuf,
"-t", tokenbuf, NULL);
errno_msg("execlp of worker bee failed");
(void)dm_respond_event(sid, token, DM_RESP_ABORT,