#if !defined(AFS_NT40_ENV) && !defined(AFS_LINUX20_ENV)
int
-test_syscall(a3, a4, a5)
- afs_uint32 a3, a4;
- void *a5;
+test_syscall(afs_uint32 a3, afs_uint32 a4, void *a5)
{
afs_uint32 rcode;
void (*old) (int);
}
#endif
-main(argc, argv)
- char **argv;
+int
+main(int argc, char **argv)
{
char *hostname;
struct hostent *hostent;
break;
}
- for (bytesRead = 0; nbytes = rx_Read(call, buffer, bufferSize);
+ for (bytesRead = 0; (nbytes = rx_Read(call, buffer, bufferSize));
bytesRead += nbytes) {
};
if (print)
}
}
Quit("testclient: done!\n");
+ return 0;
}
int
char *p = buf;
while (nbytes--) {
putchar(*p);
- *p++;
+ p++;
}
}
if ((err = rx_EndCall(call, 0)) != 0) {
elapsedTime = totalTime.sec + totalTime.usec / 1e6;
fprintf(stderr,
"Sent %d bytes in %0.3f seconds: %0.0f bytes per second\n",
- status.st_size, elapsedTime, status.st_size / elapsedTime);
+ (int) status.st_size, elapsedTime, status.st_size / elapsedTime);
if (timeReadvs) {
float delay = clock_Float(&totalReadvDelay) / nReadvs;
fprintf(stderr, "%d readvs, average delay of %0.4f seconds\n",
}
void
-Abort(char *msg, ...)
+Abort(const char *msg, ...)
{
va_list args;
va_start(args, msg);
- printf((char *)msg, args);
+ printf(msg, args);
va_end(args);
printf("\n");