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 8b21061..286b836 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
 };