Skip to content

Commit

Permalink
cfgt: fix implicit declaration of 'strcasestr'
Browse files Browse the repository at this point in the history
> cfgt_int.c: In function 'cfgt_msgout':
> cfgt_int.c:863:21: warning: implicit declaration of function 'strcasestr'; did you mean 'strcasecmp'? [-Wimplicit-function-declaration]
>  863 |  if(buf->len > 7 && strcasestr(buf->s, "OPTIONS")) {
>      |                     ^~~~~~~~~~
>      |                     strcasecmp
  • Loading branch information
linuxmaniac committed May 11, 2020
1 parent 0fff35b commit 361542a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/cfgt/cfgt_int.c
Expand Up @@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#define _GNU_SOURCE
#include <stdio.h>
#include <sys/stat.h>
#include <dirent.h>
Expand Down

0 comments on commit 361542a

Please sign in to comment.