Commit 83c12572 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

More FlexeLintery

parent e86fe835
......@@ -75,12 +75,12 @@ struct top {
double count;
};
static float period = 60; /* seconds */
static int period = 60; /* seconds */
static unsigned ntop;
static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER;
static int f_flag = 0;
static unsigned maxfieldlen = 0;
static char *ident;
static const char *ident;
static volatile sig_atomic_t end_of_file = 0;
static volatile sig_atomic_t quit = 0;
......@@ -206,7 +206,7 @@ update(int p)
int l, len, eof;
double t = 0;
static time_t last = 0;
static unsigned n;
static unsigned n = 0;
const char *q;
time_t now;
......
......@@ -139,6 +139,8 @@
// <vtree.h>
-emacro(801, VRB_*) // goto considered bad
-esym(534, *_VRB_REMOVE) // ignore retval
-esym(534, *_VRB_INSERT) // ignore retval
///////////////////////////////////////////////////////////////////////
// <vqueue.h>
......
......@@ -275,7 +275,8 @@ VUT_Setup(struct VUT *vut)
VUT_Error(vut, 1, "Only one of -n and -r options may be used");
/* Create and validate the query expression */
vut->vslq = VSLQ_New(vut->vsl, NULL, vut->g_arg, vut->q_arg);
vut->vslq = VSLQ_New(vut->vsl, NULL,
(enum VSL_grouping_e)vut->g_arg, vut->q_arg);
if (vut->vslq == NULL)
VUT_Error(vut, 1, "Query expression error:\n%s",
VSL_Error(vut->vsl));
......
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