File fix-nonvoid-returns-random.patch of Package toxcore
diff -Nur old/other/bootstrap_daemon/src/log.c new/other/bootstrap_daemon/src/log.c
--- old/other/bootstrap_daemon/src/log.c 2016-01-30 02:52:59.000000000 +0100
+++ new/other/bootstrap_daemon/src/log.c 2016-01-30 03:24:47.789632289 +0100
@@ -74,6 +74,9 @@
case LOG_LEVEL_ERROR:
return LOG_ERR;
+
+ default:
+ return LOG_INFO;
}
}
@@ -85,12 +88,13 @@
FILE *level_stdout(LOG_LEVEL level)
{
switch (level) {
- case LOG_LEVEL_INFO:
- return stdout;
-
case LOG_LEVEL_WARNING: // intentional fallthrough
case LOG_LEVEL_ERROR:
return stderr;
+
+ case LOG_LEVEL_INFO: // intentional fallthrough
+ default:
+ return stdout;
}
}