[PATCH 1/1] cli,output: include string.h for strlen()

Aleksander Morgado aleksander at aleksander.es
Fri Nov 30 10:36:22 UTC 2018


On 30/11/18 1:37, Ben Chan wrote:
> 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);
>                   ^
> ---

Pushed to git master, thanks

>  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"
> 


-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list