[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r3222 - in GNUnet/src/util: getopt threads
From: |
grothoff |
Subject: |
[GNUnet-SVN] r3222 - in GNUnet/src/util: getopt threads |
Date: |
Sat, 12 Aug 2006 19:45:12 -0700 (PDT) |
Author: grothoff
Date: 2006-08-12 19:45:10 -0700 (Sat, 12 Aug 2006)
New Revision: 3222
Modified:
GNUnet/src/util/getopt/setoption.c
GNUnet/src/util/threads/timertest.c
Log:
fix
Modified: GNUnet/src/util/getopt/setoption.c
===================================================================
--- GNUnet/src/util/getopt/setoption.c 2006-08-13 02:15:12 UTC (rev 3221)
+++ GNUnet/src/util/getopt/setoption.c 2006-08-13 02:45:10 UTC (rev 3222)
@@ -93,7 +93,7 @@
const char * option,
const char * value) {
int * val = scls;
- val = 1;
+ *val = 1;
return OK;
}
Modified: GNUnet/src/util/threads/timertest.c
===================================================================
--- GNUnet/src/util/threads/timertest.c 2006-08-13 02:15:12 UTC (rev 3221)
+++ GNUnet/src/util/threads/timertest.c 2006-08-13 02:45:10 UTC (rev 3222)
@@ -27,7 +27,7 @@
increasing;
measure precision of sleep and report;
test that sleep is interrupted by signals; */
- last = cronTime(&now);
+ last = now = get_time();
if (last != now)
return 1;
tlast = TIME(&tnow);
@@ -48,7 +48,7 @@
cronTime(&last);
if (0 != PTHREAD_SLEEP(cronMILLIS * i))
return 5;
- cronTime(&now);
+ now = get_time();
#if VERBOSE
fprintf(stderr,
"%4u ms requested, got: %4lld ms\n",
@@ -90,7 +90,7 @@
0,
sem);
SEMAPHORE_DOWN(sem);
- cronTime(&now);
+ now = get_time();
if (now < last + i)
now = last + i - now;
else
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r3222 - in GNUnet/src/util: getopt threads,
grothoff <=