diff options
author | Ben Chan <benchan@chromium.org> | 2018-08-21 14:03:53 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2018-08-21 23:11:29 +0200 |
commit | 7c5cfa13a19c2c59d003c938283652f071e7004d (patch) | |
tree | 1bafd4a30bb9f0d95faa2c8026ebb992a37c3c89 /plugins | |
parent | f6c310ba82849f160b180678e6a7110aa210784b (diff) |
xmm: include string.h for strlen()
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);
^
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/xmm/mm-modem-helpers-xmm.c | 2 |
1 files changed, 2 insertions, 0 deletions
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@aleksander.es> */ +#include <string.h> + #include "mm-log.h" #include "mm-modem-helpers.h" #include "mm-modem-helpers-xmm.h" |