[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r2298 - in GNUnet: . src/include src/util
From: |
grothoff |
Subject: |
[GNUnet-SVN] r2298 - in GNUnet: . src/include src/util |
Date: |
Wed, 30 Nov 2005 00:24:28 -0800 (PST) |
Author: grothoff
Date: 2005-11-30 00:24:26 -0800 (Wed, 30 Nov 2005)
New Revision: 2298
Modified:
GNUnet/AUTHORS
GNUnet/src/include/platform.h
GNUnet/src/util/vectortest.c
Log:
fixes
Modified: GNUnet/AUTHORS
===================================================================
--- GNUnet/AUTHORS 2005-11-29 05:05:56 UTC (rev 2297)
+++ GNUnet/AUTHORS 2005-11-30 08:24:26 UTC (rev 2298)
@@ -34,6 +34,7 @@
Tuomas Toivonen
Tzvetan Horozov <address@hidden>
Uli Luckas <address@hidden>
+Vasil Dimov <address@hidden>
Werner Koch <address@hidden> [original code of libgcrypt]
Translations (webpage, documentation, as far as known):
Modified: GNUnet/src/include/platform.h
===================================================================
--- GNUnet/src/include/platform.h 2005-11-29 05:05:56 UTC (rev 2297)
+++ GNUnet/src/include/platform.h 2005-11-30 08:24:26 UTC (rev 2298)
@@ -94,7 +94,9 @@
#endif
#include <fcntl.h>
#include <math.h>
-
+#if HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
#if TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
Modified: GNUnet/src/util/vectortest.c
===================================================================
--- GNUnet/src/util/vectortest.c 2005-11-29 05:05:56 UTC (rev 2297)
+++ GNUnet/src/util/vectortest.c 2005-11-30 08:24:26 UTC (rev 2298)
@@ -80,7 +80,7 @@
}
static int test2(int size) {
- int i;
+ long i;
struct Vector * v;
v = vectorNew(size);
@@ -91,21 +91,21 @@
if (500 != vectorSize(v))
{ DUMP(v); return 1; }
for (i=0;i<500;i++)
- if (499 - i != (int) vectorGetAt(v, i))
+ if (499 - i != (long) vectorGetAt(v, i))
{ DUMP(v); return 1; }
- if (499 != (int) vectorGetFirst(v))
+ if (499 != (long) vectorGetFirst(v))
{ DUMP(v); return 1; }
for (i=498;i>=0;i--)
- if (i != (int) vectorGetNext(v))
+ if (i != (long) vectorGetNext(v))
{ DUMP(v); return 1; }
- if (499 != (int) vectorGetFirst(v))
+ if (499 != (long) vectorGetFirst(v))
{ DUMP(v); return 1; }
for (i=498;i>=250;i--)
- if (i != (int) vectorGetNext(v))
+ if (i != (long) vectorGetNext(v))
{ DUMP(v); return 1; }
for (i=251;i<499;i++)
- if (i != (int) vectorGetPrevious(v))
+ if (i != (long) vectorGetPrevious(v))
{ DUMP(v); return 1; }
vectorFree(v);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r2298 - in GNUnet: . src/include src/util,
grothoff <=