]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of rs-spin
authorSean Hefty <sean.hefty@intel.com>
Tue, 5 Jun 2012 23:22:01 +0000 (16:22 -0700)
committerSean Hefty <sean.hefty@intel.com>
Tue, 5 Jun 2012 23:22:01 +0000 (16:22 -0700)
src/rsocket.c

index 3619af45815244e1ea69bd3f03e72cb0832a7192..bb665036cdac3b6324f4607ff9277708bdb223dc 100644 (file)
@@ -66,7 +66,7 @@
 static struct index_map idm;
 static pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;
 
-static unsigned long long polling_time;
+static uint32_t polling_time;
 
 /*
  * Immediate data format is determined by the upper bits
@@ -206,7 +206,7 @@ void rs_configure(void)
        FILE *f;
 
        if ((f = fopen(RS_CONF_DIR "/polling_time", "r"))) {
-               fscanf(f, "%Lu", &polling_time);
+               fscanf(f, "%u", &polling_time);
                fclose(f);
        }
 }
@@ -941,7 +941,7 @@ static int rs_process_cq(struct rsocket *rs, int nonblock, int (*test)(struct rs
 static int rs_get_comp(struct rsocket *rs, int nonblock, int (*test)(struct rsocket *rs))
 {
        struct timeval s, e;
-       unsigned long long poll_time = 0;
+       uint32_t poll_time = 0;
        int ret;
 
        do {
@@ -1508,7 +1508,7 @@ int rpoll(struct pollfd *fds, nfds_t nfds, int timeout)
 {
        struct timeval s, e;
        struct pollfd *rfds;
-       unsigned long long poll_time = 0;
+       uint32_t poll_time = 0;
        int ret;
 
        do {