diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-03-15 15:16:29 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-03-15 15:16:29 +0200 |
commit | a6d33abe1d17ea1d004c645cc27120c92d7aa8e6 (patch) | |
tree | a752e9c99368d017c7da7ab8e731cfb706979068 /lib | |
parent | 58a8936d30bbb18b8ad93fecfe3fe2210d1c18b2 (diff) | |
download | eclat-a6d33abe1d17ea1d004c645cc27120c92d7aa8e6.tar.gz eclat-a6d33abe1d17ea1d004c645cc27120c92d7aa8e6.tar.bz2 |
Minor fixes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/confirm.c | 3 | ||||
-rw-r--r-- | lib/forlan.c | 6 | ||||
-rw-r--r-- | lib/forlangrm.y | 4 | ||||
-rw-r--r-- | lib/forlanlex.l | 1 | ||||
-rw-r--r-- | lib/ldapmap.c | 3 |
5 files changed, 10 insertions, 7 deletions
diff --git a/lib/confirm.c b/lib/confirm.c index ff60440..550a822 100644 --- a/lib/confirm.c +++ b/lib/confirm.c @@ -1,3 +1,3 @@ /* This file is part of Eclat. - Copyright (C) 2012-2015 Sergey Poznyakoff. + Copyright (C) 2012-2018 Sergey Poznyakoff. @@ -17,2 +17,3 @@ #include "libeclat.h" +#include <unistd.h> #include <sysexits.h> diff --git a/lib/forlan.c b/lib/forlan.c index 977271d..9fc80cb 100644 --- a/lib/forlan.c +++ b/lib/forlan.c @@ -1,3 +1,3 @@ /* This file is part of Eclat. - Copyright (C) 2012-2015 Sergey Poznyakoff. + Copyright (C) 2012-2018 Sergey Poznyakoff. @@ -981,6 +981,6 @@ func_sort(forlan_eval_env_t env, struct grecs_list *list) - if (ep = list->head->next) { + if ((ep = list->head->next)) { t = ep->data; forlan_sort_key = t->v.string; - if (ep = ep->next) { + if ((ep = ep->next)) { char *p; diff --git a/lib/forlangrm.y b/lib/forlangrm.y index 2db1274..9d44ec9 100644 --- a/lib/forlangrm.y +++ b/lib/forlangrm.y @@ -25,3 +25,3 @@ int yylex(); -static int yyerror(char *); +static int yyerror(char const *); union forlan_node *forlan_parse_tree; @@ -373,3 +373,3 @@ stmt_asgn : IDENT '=' node ';' static int -yyerror(char *s) +yyerror(char const *s) { diff --git a/lib/forlanlex.l b/lib/forlanlex.l index 62265cb..0fc469e 100644 --- a/lib/forlanlex.l +++ b/lib/forlanlex.l @@ -58,2 +58,3 @@ static int yywrap(void); +%option noinput %option nounput diff --git a/lib/ldapmap.c b/lib/ldapmap.c index 61cdf87..09b0689 100644 --- a/lib/ldapmap.c +++ b/lib/ldapmap.c @@ -1,3 +1,3 @@ /* This file is part of Eclat. - Copyright (C) 2012-2015 Sergey Poznyakoff. + Copyright (C) 2012-2018 Sergey Poznyakoff. @@ -23,2 +23,3 @@ #include <pwd.h> +#include <unistd.h> |