aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-09-04 12:04:31 +0000
committerChristian Grothoff <christian@grothoff.org>2009-09-04 12:04:31 +0000
commit0df8d7af30620c0b3f19e3b7c439d1dfd83e3919 (patch)
tree17addb568861c613f7c2869ca440655faca4859f /src
parentf8bfdee4d3a12ccc63b4f340b3032ae3b0ee5fd1 (diff)
downloadgnunet-0df8d7af30620c0b3f19e3b7c439d1dfd83e3919.tar.gz
gnunet-0df8d7af30620c0b3f19e3b7c439d1dfd83e3919.zip
fixing warnings
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_scheduler_lib.h22
-rw-r--r--src/util/disk.c9
-rw-r--r--src/util/scheduler.c22
-rw-r--r--src/util/test_disk.c2
-rw-r--r--src/util/test_scheduler.c10
5 files changed, 35 insertions, 30 deletions
diff --git a/src/include/gnunet_scheduler_lib.h b/src/include/gnunet_scheduler_lib.h
index 4390a8277..db94f05ab 100644
--- a/src/include/gnunet_scheduler_lib.h
+++ b/src/include/gnunet_scheduler_lib.h
@@ -412,11 +412,12 @@ GNUNET_SCHEDULER_add_write_net (struct GNUNET_SCHEDULER_Handle *sched,
412 */ 412 */
413GNUNET_SCHEDULER_TaskIdentifier 413GNUNET_SCHEDULER_TaskIdentifier
414GNUNET_SCHEDULER_add_read_file (struct GNUNET_SCHEDULER_Handle *sched, 414GNUNET_SCHEDULER_add_read_file (struct GNUNET_SCHEDULER_Handle *sched,
415 int run_on_shutdown, 415 int run_on_shutdown,
416 enum GNUNET_SCHEDULER_Priority prio, 416 enum GNUNET_SCHEDULER_Priority prio,
417 GNUNET_SCHEDULER_TaskIdentifier prerequisite_task, 417 GNUNET_SCHEDULER_TaskIdentifier prerequisite_task,
418 struct GNUNET_TIME_Relative delay, 418 struct GNUNET_TIME_Relative delay,
419 struct GNUNET_DISK_FileHandle *rfd, GNUNET_SCHEDULER_Task main, void *cls); 419 const struct GNUNET_DISK_FileHandle *rfd,
420 GNUNET_SCHEDULER_Task main, void *cls);
420 421
421 422
422/** 423/**
@@ -445,11 +446,12 @@ GNUNET_SCHEDULER_add_read_file (struct GNUNET_SCHEDULER_Handle *sched,
445 */ 446 */
446GNUNET_SCHEDULER_TaskIdentifier 447GNUNET_SCHEDULER_TaskIdentifier
447GNUNET_SCHEDULER_add_write_file (struct GNUNET_SCHEDULER_Handle *sched, 448GNUNET_SCHEDULER_add_write_file (struct GNUNET_SCHEDULER_Handle *sched,
448 int run_on_shutdown, 449 int run_on_shutdown,
449 enum GNUNET_SCHEDULER_Priority prio, 450 enum GNUNET_SCHEDULER_Priority prio,
450 GNUNET_SCHEDULER_TaskIdentifier prerequisite_task, 451 GNUNET_SCHEDULER_TaskIdentifier prerequisite_task,
451 struct GNUNET_TIME_Relative delay, 452 struct GNUNET_TIME_Relative delay,
452 struct GNUNET_DISK_FileHandle *wfd, GNUNET_SCHEDULER_Task main, void *cls); 453 const struct GNUNET_DISK_FileHandle *wfd,
454 GNUNET_SCHEDULER_Task main, void *cls);
453 455
454 456
455/** 457/**
diff --git a/src/util/disk.c b/src/util/disk.c
index b8653ed1e..3f46923f7 100644
--- a/src/util/disk.c
+++ b/src/util/disk.c
@@ -877,10 +877,11 @@ int
877GNUNET_DISK_file_copy (const char *src, const char *dst) 877GNUNET_DISK_file_copy (const char *src, const char *dst)
878{ 878{
879 char *buf; 879 char *buf;
880 unsigned long long pos; 880 uint64_t pos;
881 unsigned long long size; 881 uint64_t size;
882 unsigned long long len; 882 size_t len;
883 struct GNUNET_DISK_FileHandle *in, *out; 883 struct GNUNET_DISK_FileHandle *in;
884 struct GNUNET_DISK_FileHandle *out;
884 885
885 if (GNUNET_OK != GNUNET_DISK_file_size (src, &size, GNUNET_YES)) 886 if (GNUNET_OK != GNUNET_DISK_file_size (src, &size, GNUNET_YES))
886 return GNUNET_SYSERR; 887 return GNUNET_SYSERR;
diff --git a/src/util/scheduler.c b/src/util/scheduler.c
index 5643a25d0..d1d4e1970 100644
--- a/src/util/scheduler.c
+++ b/src/util/scheduler.c
@@ -896,11 +896,12 @@ GNUNET_SCHEDULER_add_select (struct GNUNET_SCHEDULER_Handle * sched,
896 */ 896 */
897GNUNET_SCHEDULER_TaskIdentifier 897GNUNET_SCHEDULER_TaskIdentifier
898GNUNET_SCHEDULER_add_read_file (struct GNUNET_SCHEDULER_Handle * sched, 898GNUNET_SCHEDULER_add_read_file (struct GNUNET_SCHEDULER_Handle * sched,
899 int run_on_shutdown, 899 int run_on_shutdown,
900 enum GNUNET_SCHEDULER_Priority prio, 900 enum GNUNET_SCHEDULER_Priority prio,
901 GNUNET_SCHEDULER_TaskIdentifier prerequisite_task, 901 GNUNET_SCHEDULER_TaskIdentifier prerequisite_task,
902 struct GNUNET_TIME_Relative delay, 902 struct GNUNET_TIME_Relative delay,
903 struct GNUNET_DISK_FileHandle *rfd, GNUNET_SCHEDULER_Task main, void *cls) 903 const struct GNUNET_DISK_FileHandle *rfd,
904 GNUNET_SCHEDULER_Task main, void *cls)
904{ 905{
905 struct GNUNET_NETWORK_FDSet *rs; 906 struct GNUNET_NETWORK_FDSet *rs;
906 GNUNET_SCHEDULER_TaskIdentifier ret; 907 GNUNET_SCHEDULER_TaskIdentifier ret;
@@ -942,11 +943,12 @@ GNUNET_SCHEDULER_add_read_file (struct GNUNET_SCHEDULER_Handle * sched,
942 */ 943 */
943GNUNET_SCHEDULER_TaskIdentifier 944GNUNET_SCHEDULER_TaskIdentifier
944GNUNET_SCHEDULER_add_write_file (struct GNUNET_SCHEDULER_Handle * sched, 945GNUNET_SCHEDULER_add_write_file (struct GNUNET_SCHEDULER_Handle * sched,
945 int run_on_shutdown, 946 int run_on_shutdown,
946 enum GNUNET_SCHEDULER_Priority prio, 947 enum GNUNET_SCHEDULER_Priority prio,
947 GNUNET_SCHEDULER_TaskIdentifier prerequisite_task, 948 GNUNET_SCHEDULER_TaskIdentifier prerequisite_task,
948 struct GNUNET_TIME_Relative delay, 949 struct GNUNET_TIME_Relative delay,
949 struct GNUNET_DISK_FileHandle *wfd, GNUNET_SCHEDULER_Task main, void *cls) 950 const struct GNUNET_DISK_FileHandle *wfd,
951 GNUNET_SCHEDULER_Task main, void *cls)
950{ 952{
951 struct GNUNET_NETWORK_FDSet *ws; 953 struct GNUNET_NETWORK_FDSet *ws;
952 GNUNET_SCHEDULER_TaskIdentifier ret; 954 GNUNET_SCHEDULER_TaskIdentifier ret;
diff --git a/src/util/test_disk.c b/src/util/test_disk.c
index f978287ae..7925c80e4 100644
--- a/src/util/test_disk.c
+++ b/src/util/test_disk.c
@@ -86,7 +86,7 @@ static int
86testOpenClose () 86testOpenClose ()
87{ 87{
88 struct GNUNET_DISK_FileHandle *fh; 88 struct GNUNET_DISK_FileHandle *fh;
89 unsigned long long size; 89 uint64_t size;
90 long avail; 90 long avail;
91 91
92 fh = GNUNET_DISK_file_open (".testfile", GNUNET_DISK_OPEN_READWRITE 92 fh = GNUNET_DISK_file_open (".testfile", GNUNET_DISK_OPEN_READWRITE
diff --git a/src/util/test_scheduler.c b/src/util/test_scheduler.c
index 6ae293058..0d5af1c0c 100644
--- a/src/util/test_scheduler.c
+++ b/src/util/test_scheduler.c
@@ -119,11 +119,11 @@ task5 (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
119 fds[0] = GNUNET_DISK_pipe_handle (p, 0); 119 fds[0] = GNUNET_DISK_pipe_handle (p, 0);
120 fds[1] = GNUNET_DISK_pipe_handle (p, 1); 120 fds[1] = GNUNET_DISK_pipe_handle (p, 1);
121 GNUNET_SCHEDULER_add_read_file (tc->sched, 121 GNUNET_SCHEDULER_add_read_file (tc->sched,
122 GNUNET_NO, 122 GNUNET_NO,
123 GNUNET_SCHEDULER_PRIORITY_DEFAULT, 123 GNUNET_SCHEDULER_PRIORITY_DEFAULT,
124 GNUNET_SCHEDULER_NO_TASK, 124 GNUNET_SCHEDULER_NO_TASK,
125 GNUNET_TIME_UNIT_FOREVER_REL, 125 GNUNET_TIME_UNIT_FOREVER_REL,
126 fds[0], &taskRd, cls); 126 fds[0], &taskRd, cls);
127 GNUNET_SCHEDULER_add_write_file (tc->sched, 127 GNUNET_SCHEDULER_add_write_file (tc->sched,
128 GNUNET_NO, 128 GNUNET_NO,
129 GNUNET_SCHEDULER_PRIORITY_DEFAULT, 129 GNUNET_SCHEDULER_PRIORITY_DEFAULT,