[PATCH 1/1] cli,output: include string.h for strlen()
Ben Chan
benchan at chromium.org
Fri Nov 30 00:37:58 UTC 2018
This patch fixes the following compiler warning:
mmcli-output.c:783:19: error: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-declaration]
aux = strlen (section_infos[field_infos[item_l->field].section].name);
^
---
cli/mmcli-output.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/cli/mmcli-output.c b/cli/mmcli-output.c
index 245aeed1..ac7dc333 100644
--- a/cli/mmcli-output.c
+++ b/cli/mmcli-output.c
@@ -19,6 +19,7 @@
*/
#include <stdio.h>
+#include <string.h>
#include <libmm-glib.h>
#include "mm-common-helpers.h"
--
2.20.0.rc0.387.gc7a69e6b6c-goog
More information about the ModemManager-devel
mailing list