Fix array type to match items
authorRicardo Mones <ricardo@mones.org>
Wed, 25 Apr 2018 13:40:42 +0000 (15:40 +0200)
committerRicardo Mones <ricardo@mones.org>
Wed, 25 Apr 2018 13:40:42 +0000 (15:40 +0200)
Fixes warnings:
• …from log.c:25: /usr/include/glib-2.0/glib/gmacros.h:284:14: warning:
  initialization makes pointer from integer without a cast
• log.c:189:29: warning: return makes integer from pointer without a cast

src/common/log.c

index 8b21061a1db8a2e8a05a9102798fee2a5193295a..286b836d6d75a8f40884bdcaf670b616a4047170 100644 (file)
@@ -65,7 +65,7 @@ static gchar *log_filename[LOG_INSTANCE_MAX] = {
 };
 
 /* read-only */
-static gchar *log_error_capability[LOG_INSTANCE_MAX] = {
+static gboolean log_error_capability[LOG_INSTANCE_MAX] = {
        TRUE,
        FALSE
 };