Commit 79c2d962 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Minor cleanups from FlexeLint

parent 0393086a
...@@ -33,4 +33,5 @@ ...@@ -33,4 +33,5 @@
-e557 // unrecog format -e557 // unrecog format
-e732 // Loss of sign (arg. no. 2) (int to unsigned -e732 // Loss of sign (arg. no. 2) (int to unsigned
-e737 // [45] Loss of sign in promotion from int to unsigned -e737 // [45] Loss of sign in promotion from int to unsigned
-e788 // tag not used in defaulted switch
...@@ -4,6 +4,7 @@ T=/tmp/_$$ ...@@ -4,6 +4,7 @@ T=/tmp/_$$
flexelint \ flexelint \
-I/usr/include \ -I/usr/include \
-I. \ -I. \
-I../.. \
-I../../include \ -I../../include \
../flint.lnt \ ../flint.lnt \
flint.lnt \ flint.lnt \
......
...@@ -65,14 +65,12 @@ ...@@ -65,14 +65,12 @@
SVNID("$Id$") SVNID("$Id$")
#include <ctype.h> #include <ctype.h>
#include <errno.h>
#include <signal.h> #include <signal.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <time.h> #include <strings.h>
#include <unistd.h> #include <unistd.h>
#include <limits.h>
#include "compat/daemon.h" #include "compat/daemon.h"
...@@ -112,7 +110,7 @@ static size_t nll; ...@@ -112,7 +110,7 @@ static size_t nll;
static int o_flag = 0; static int o_flag = 0;
static int match_tag; static int match_tag;
static vre_t *match_tag_re; static const vre_t *match_tag_re;
static const char *format; static const char *format;
...@@ -677,6 +675,7 @@ h_ncsa(void *priv, enum vsl_tag tag, unsigned fd, ...@@ -677,6 +675,7 @@ h_ncsa(void *priv, enum vsl_tag tag, unsigned fd,
} }
} }
/* Fall through if we haven't handled something */ /* Fall through if we haven't handled something */
/* FALLTHROUGH*/
default: default:
fprintf(stderr, "Unknown format character: %c\n", *p); fprintf(stderr, "Unknown format character: %c\n", *p);
exit(1); exit(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment