X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Futil%2Ftest_common_logging_runtime_loglevels.c;h=58b722b113bfd4a96540637775c20db7b7bb4e0b;hb=72c8645af31896829b674b575c5375706f362a30;hp=697652c39b45d91dffff777421463d5e28d5bd2d;hpb=6e00a1bd69bc34b850665835ba9d730caa61e832;p=oweals%2Fgnunet.git diff --git a/src/util/test_common_logging_runtime_loglevels.c b/src/util/test_common_logging_runtime_loglevels.c index 697652c39..58b722b11 100644 --- a/src/util/test_common_logging_runtime_loglevels.c +++ b/src/util/test_common_logging_runtime_loglevels.c @@ -168,7 +168,7 @@ int bytes; static void read_call (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) { - struct GNUNET_DISK_FileHandle *stdout_read_handle = cls; + const struct GNUNET_DISK_FileHandle *stdout_read_handle = cls; char level[8]; long delay; long delays[8]; @@ -186,7 +186,7 @@ read_call (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) #endif read_task = GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, stdout_read_handle, &read_call, - stdout_read_handle); + (void*) stdout_read_handle); return; }