fixing warnings
authorChristian Grothoff <christian@grothoff.org>
Fri, 4 Sep 2009 12:04:31 +0000 (12:04 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 4 Sep 2009 12:04:31 +0000 (12:04 +0000)
src/include/gnunet_scheduler_lib.h
src/util/disk.c
src/util/scheduler.c
src/util/test_disk.c
src/util/test_scheduler.c

index 4390a827787da2c21ecaf4b5cdd516706dbbdc7c..db94f05ab832dc995255a01be732391af8d4a423 100644 (file)
@@ -412,11 +412,12 @@ GNUNET_SCHEDULER_add_write_net (struct GNUNET_SCHEDULER_Handle *sched,
  */
 GNUNET_SCHEDULER_TaskIdentifier
 GNUNET_SCHEDULER_add_read_file (struct GNUNET_SCHEDULER_Handle *sched,
-                           int run_on_shutdown,
-                           enum GNUNET_SCHEDULER_Priority prio,
-                           GNUNET_SCHEDULER_TaskIdentifier prerequisite_task,
-                           struct GNUNET_TIME_Relative delay,
-                           struct GNUNET_DISK_FileHandle *rfd, GNUNET_SCHEDULER_Task main, void *cls);
+                               int run_on_shutdown,
+                               enum GNUNET_SCHEDULER_Priority prio,
+                               GNUNET_SCHEDULER_TaskIdentifier prerequisite_task,
+                               struct GNUNET_TIME_Relative delay,
+                               const struct GNUNET_DISK_FileHandle *rfd, 
+                               GNUNET_SCHEDULER_Task main, void *cls);
 
 
 /**
@@ -445,11 +446,12 @@ GNUNET_SCHEDULER_add_read_file (struct GNUNET_SCHEDULER_Handle *sched,
  */
 GNUNET_SCHEDULER_TaskIdentifier
 GNUNET_SCHEDULER_add_write_file (struct GNUNET_SCHEDULER_Handle *sched,
-                            int run_on_shutdown,
-                            enum GNUNET_SCHEDULER_Priority prio,
-                            GNUNET_SCHEDULER_TaskIdentifier prerequisite_task,
-                            struct GNUNET_TIME_Relative delay,
-                            struct GNUNET_DISK_FileHandle *wfd, GNUNET_SCHEDULER_Task main, void *cls);
+                                int run_on_shutdown,
+                                enum GNUNET_SCHEDULER_Priority prio,
+                                GNUNET_SCHEDULER_TaskIdentifier prerequisite_task,
+                                struct GNUNET_TIME_Relative delay,
+                                const struct GNUNET_DISK_FileHandle *wfd,
+                                GNUNET_SCHEDULER_Task main, void *cls);
 
 
 /**
index b8653ed1e4bb4c676ad60a8832bbca4a7edc6c24..3f46923f700c634b4bf376876001ab33d132c97c 100644 (file)
@@ -877,10 +877,11 @@ int
 GNUNET_DISK_file_copy (const char *src, const char *dst)
 {
   char *buf;
-  unsigned long long pos;
-  unsigned long long size;
-  unsigned long long len;
-  struct GNUNET_DISK_FileHandle *in, *out;
+  uint64_t pos;
+  uint64_t size;
+  size_t len;
+  struct GNUNET_DISK_FileHandle *in;
+  struct GNUNET_DISK_FileHandle *out;
 
   if (GNUNET_OK != GNUNET_DISK_file_size (src, &size, GNUNET_YES))
     return GNUNET_SYSERR;
index 5643a25d0ade03e4eac122efe37899780995275b..d1d4e19709cccf7e5d0fa171a46774a2e3ddd19c 100644 (file)
@@ -896,11 +896,12 @@ GNUNET_SCHEDULER_add_select (struct GNUNET_SCHEDULER_Handle * sched,
  */
 GNUNET_SCHEDULER_TaskIdentifier
 GNUNET_SCHEDULER_add_read_file (struct GNUNET_SCHEDULER_Handle * sched,
-                           int run_on_shutdown,
-                           enum GNUNET_SCHEDULER_Priority prio,
-                           GNUNET_SCHEDULER_TaskIdentifier prerequisite_task,
-                           struct GNUNET_TIME_Relative delay,
-                           struct GNUNET_DISK_FileHandle *rfd, GNUNET_SCHEDULER_Task main, void *cls)
+                               int run_on_shutdown,
+                               enum GNUNET_SCHEDULER_Priority prio,
+                               GNUNET_SCHEDULER_TaskIdentifier prerequisite_task,
+                               struct GNUNET_TIME_Relative delay,
+                               const struct GNUNET_DISK_FileHandle *rfd,
+                               GNUNET_SCHEDULER_Task main, void *cls)
 {
   struct GNUNET_NETWORK_FDSet *rs;
   GNUNET_SCHEDULER_TaskIdentifier ret;
@@ -942,11 +943,12 @@ GNUNET_SCHEDULER_add_read_file (struct GNUNET_SCHEDULER_Handle * sched,
  */
 GNUNET_SCHEDULER_TaskIdentifier
 GNUNET_SCHEDULER_add_write_file (struct GNUNET_SCHEDULER_Handle * sched,
-                            int run_on_shutdown,
-                            enum GNUNET_SCHEDULER_Priority prio,
-                            GNUNET_SCHEDULER_TaskIdentifier prerequisite_task,
-                            struct GNUNET_TIME_Relative delay,
-                            struct GNUNET_DISK_FileHandle *wfd, GNUNET_SCHEDULER_Task main, void *cls)
+                                int run_on_shutdown,
+                                enum GNUNET_SCHEDULER_Priority prio,
+                                GNUNET_SCHEDULER_TaskIdentifier prerequisite_task,
+                                struct GNUNET_TIME_Relative delay,
+                                const struct GNUNET_DISK_FileHandle *wfd,
+                                GNUNET_SCHEDULER_Task main, void *cls)
 {
   struct GNUNET_NETWORK_FDSet *ws;
   GNUNET_SCHEDULER_TaskIdentifier ret;
index f978287ae9952701f4cdd9c3e9091a62c7cfd254..7925c80e4aadf341bb3440e2b443f1da86c7af11 100644 (file)
@@ -86,7 +86,7 @@ static int
 testOpenClose ()
 {
   struct GNUNET_DISK_FileHandle *fh;
-  unsigned long long size;
+  uint64_t size;
   long avail;
 
   fh = GNUNET_DISK_file_open (".testfile", GNUNET_DISK_OPEN_READWRITE
index 6ae293058a6b43a07bc937e01a7b28a0227dce95..0d5af1c0c4eb364784caebedf44ad85c656313a1 100644 (file)
@@ -119,11 +119,11 @@ task5 (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   fds[0] = GNUNET_DISK_pipe_handle (p, 0);
   fds[1] = GNUNET_DISK_pipe_handle (p, 1);
   GNUNET_SCHEDULER_add_read_file (tc->sched,
-                             GNUNET_NO,
-                             GNUNET_SCHEDULER_PRIORITY_DEFAULT,
-                             GNUNET_SCHEDULER_NO_TASK,
-                             GNUNET_TIME_UNIT_FOREVER_REL,
-                             fds[0], &taskRd, cls);
+                                 GNUNET_NO,
+                                 GNUNET_SCHEDULER_PRIORITY_DEFAULT,
+                                 GNUNET_SCHEDULER_NO_TASK,
+                                 GNUNET_TIME_UNIT_FOREVER_REL,
+                                 fds[0], &taskRd, cls);
   GNUNET_SCHEDULER_add_write_file (tc->sched,
                               GNUNET_NO,
                               GNUNET_SCHEDULER_PRIORITY_DEFAULT,