[PATCH] xmm: include string.h for strlen()
Ben Chan
benchan at chromium.org
Tue Aug 21 21:03:53 UTC 2018
This patch fixes the following compiler warning:
xmm/mm-modem-helpers-xmm.c:388:38: error: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-declaration]
g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error);
^
---
plugins/xmm/mm-modem-helpers-xmm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/xmm/mm-modem-helpers-xmm.c b/plugins/xmm/mm-modem-helpers-xmm.c
index a8ede4cf..1c2280af 100644
--- a/plugins/xmm/mm-modem-helpers-xmm.c
+++ b/plugins/xmm/mm-modem-helpers-xmm.c
@@ -13,6 +13,8 @@
* Copyright (C) 2018 Aleksander Morgado <aleksander at aleksander.es>
*/
+#include <string.h>
+
#include "mm-log.h"
#include "mm-modem-helpers.h"
#include "mm-modem-helpers-xmm.h"
--
2.18.0.1017.ga543ac7ca45-goog
More information about the ModemManager-devel
mailing list