declaration, remove useless "break" after exit(3) call, and add a
missing va_end(3) call.
RV_OK = 0,
RV_USAGE = 1,
RV_NOTFOUND = 2,
- RV_NOENUM = 3,
+ RV_NOENUM = 3
};
static struct getentdb {
for (curdb = databases; curdb->name != NULL; curdb++) {
if (strcmp(curdb->name, argv[1]) == 0) {
exit(curdb->callback(argc, argv));
- break;
}
}
fprintf(stderr, "Unknown database: %s\n", argv[1]);
curpref = sep;
}
printf("\n");
+ va_end(ap);
}
/*