eparm[2] = param6;
eparm[3] = param7;
- param4 = eparm;
+ param4 = (long) eparm;
#endif
error = syscall(AFS_SYSCALL, AFSCALL_CALL, param1, param2, param3, param4, param5, param6, param7);
printf("kvno %4d: key is '%s' '", tkeys.key[i].kvno, tbuffer);
strcpy(x,(char *)tbuffer);
for(count=0;count<8;count++)
- printf("\\%03o",(unsigned char *)x[count]);
+ printf("\\%03o", x[count]);
printf("'\n");
}
}
#ifdef HAVE_STRING_H
#include <string.h>
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#include <rx/xdr.h>
#include "rmtsys.h"
#include <stdio.h> /*I/O stuff*/
#include <afs/afsutil.h>
#include <errno.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
+
/*
* --------------------- Exported definitions ---------------------
BEWARE: avoid quotes in the assertion!!
Also beware: you cannot make the NOASSERT case a null macro, because of side effects */
+#undef assert
#ifndef NOASSERT
#define assert(ex) {if (!(ex)){fprintf(stderr,"Assertion failed: file %s, line %d\n", __FILE__, __LINE__);fprintf(stderr, "\t%s\n", # ex); abort();}}
#else
#define u16 unsigned short
#include <features.h>
#if __GLIBC_MINOR__ >= 2
-#define _SYS_TYPES_H
+#define _SYS_TYPES_H 1
#endif
#define __KERNEL__
#endif
perror("chmod back to RW");
return 1;
}
- gettimeofday(&tv[0], (char *) 0);
- gettimeofday(&tv[1], (char *) 0);
+ gettimeofday(&tv[0], (void *) 0);
+ gettimeofday(&tv[1], (void *) 0);
tv[0].tv_sec -= 10000;
tv[0].tv_usec = 0;
tv[1].tv_sec -= 20000;
#define false 0
#include <errno.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
#ifdef AFS_AIX32_ENV
#include <signal.h>
#undef _NONSTD_TYPES
#include <netinet/in.h>
#endif
#include <afs/venus.h>
-#ifdef HAVE_STRING_H
-#include <string.h>
-#else
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-#endif
/* ************************************************************* */
#include <errno.h>
#include <stdio.h>
#include <sys/file.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
#include "cnvldb.h" /* CHANGEME! */
#include <netinet/in.h>
#include <afs/venus.h>
#include <afs/fileutil.h>
#include "vlserver.h"
-#ifdef HAVE_STRING_H
-#include <string.h>
-#else
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-#endif
#define MAXSIZE 2048 /* most I'll get back from PIOCTL */
#define BADSERVERID 255 /* XXX */