]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
rxperf: Fix so it builds on Unix
authorSimon Wilkinson <sxw@your-file-system.com>
Wed, 22 Sep 2010 18:50:47 +0000 (19:50 +0100)
committerDerrick Brashear <shadow@dementia.org>
Tue, 5 Oct 2010 18:53:56 +0000 (11:53 -0700)
Fix assorted errors in the rxperf utility so that it will build
on Unix.

Reviewed-on: http://gerrit.openafs.org/2834
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit a10f644fd21482559039f79e4a14fd39a83f6f9b)
(cherry picked from commit a421dbb79a96e6ac4ca004c6b65ace313c340c3f)
Change-Id: I80532b781fe758112718ab8d5b268e4005d4376d
Reviewed-on: http://gerrit.openafs.org/2916
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/rx/test/rxperf.c

index 6ca4a4a8e6303c2231686444c257a6c5579b2582..efa112e076dba6feba85a4899ddc86a22845bf69 100644 (file)
@@ -311,10 +311,10 @@ rxperf_ExecuteRequest(struct rx_call *call)
 {
     afs_int32 version;
     afs_int32 command;
-    afs_uint32 bytes;
-    afs_uint32 recvb;
-    afs_uint32 sendb;
-    afs_uint32 data;
+    afs_int32 bytes;
+    afs_int32 recvb;
+    afs_int32 sendb;
+    afs_int32 data;
     afs_uint32 num;
     afs_uint32 *readwrite;
     afs_uint32 i;
@@ -587,7 +587,7 @@ do_client(const char *server, short port, char *filename, afs_int32 command,
     struct rx_securityClass *secureobj;
     int secureindex;
     afs_int32 data;
-    afs_int32 num;
+    afs_uint32 num;
     int ret;
     int i;
     int readp = FALSE;
@@ -767,7 +767,7 @@ do_client(const char *server, short port, char *filename, afs_int32 command,
 }
 
 static void
-usage()
+usage(void)
 {
 #define COMMON ""