summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2018-11-29 16:37:58 -0800
committerAleksander Morgado <aleksander@aleksander.es>2018-11-30 11:36:07 +0100
commit03fdb33e1c2e39cab2629ed3f16ddbc05b7752d8 (patch)
tree950a4ae14b66ddfb5dbfe392078b3b336596ef24
parent9389265bababbacab0ab73388ed74db66e29cc26 (diff)
downloadModemManager-03fdb33e1c2e39cab2629ed3f16ddbc05b7752d8.tar.gz
cli,output: include string.h for strlen()
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); ^
-rw-r--r--cli/mmcli-output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/mmcli-output.c b/cli/mmcli-output.c
index 245aeed1e..ac7dc3334 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"