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

Minor cleanups from FlexeLint

parent 0393086a
......@@ -33,4 +33,5 @@
-e557 // unrecog format
-e732 // Loss of sign (arg. no. 2) (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/_$$
flexelint \
-I/usr/include \
-I. \
-I../.. \
-I../../include \
../flint.lnt \
flint.lnt \
......
......@@ -65,14 +65,12 @@
SVNID("$Id$")
#include <ctype.h>
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <strings.h>
#include <unistd.h>
#include <limits.h>
#include "compat/daemon.h"
......@@ -112,7 +110,7 @@ static size_t nll;
static int o_flag = 0;
static int match_tag;
static vre_t *match_tag_re;
static const vre_t *match_tag_re;
static const char *format;
......@@ -677,6 +675,7 @@ h_ncsa(void *priv, enum vsl_tag tag, unsigned fd,
}
}
/* Fall through if we haven't handled something */
/* FALLTHROUGH*/
default:
fprintf(stderr, "Unknown format character: %c\n", *p);
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