From: Sean Hefty Date: Tue, 5 Jun 2012 23:22:01 +0000 (-0700) Subject: Refresh of rs-spin X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=1489cce127777bb554e2d3d6220b110562472ac9;p=~shefty%2Flibrdmacm.git Refresh of rs-spin --- diff --git a/src/rsocket.c b/src/rsocket.c index 3619af45..bb665036 100644 --- a/src/rsocket.c +++ b/src/rsocket.c @@ -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 {