remove unused variables

This commit is contained in:
Jan-Piet Mens
2015-09-01 15:10:39 +02:00
parent 43597997d1
commit 23b421bc02
2 changed files with 3 additions and 5 deletions

View File

@@ -578,7 +578,6 @@ static int candidate_line(char *line, void *param)
void locations(char *filename, JsonNode *obj, JsonNode *arr, time_t s_lo, time_t s_hi, output_type otype, int limit, JsonNode *fields)
{
int rc;
struct jparam jarg;
if (obj == NULL || obj->tag != JSON_OBJECT)
@@ -593,9 +592,9 @@ void locations(char *filename, JsonNode *obj, JsonNode *arr, time_t s_lo, time_t
jarg.fields = fields;
if (limit == 0) {
rc = cat(filename, candidate_line, &jarg);
cat(filename, candidate_line, &jarg);
} else {
rc = tac(filename, limit, candidate_line, &jarg);
tac(filename, limit, candidate_line, &jarg);
}
}

3
util.c
View File

@@ -227,9 +227,8 @@ int syslog_facility_code(char *facility)
{NULL, -1}
}, *lp;
int n;
for (n = 0, lp = codes; lp->val != -1; lp++) {
for (lp = codes; lp->val != -1; lp++) {
if (!strcasecmp(facility, lp->name))
return (lp->val);
}