Get rid of logging.c and most exit() calls replaced with return() for true library usage

This commit is contained in:
jsteube
2016-10-09 22:41:55 +02:00
parent 7ed79bf42e
commit 27bec8be13
57 changed files with 4087 additions and 4228 deletions

View File

@@ -4,7 +4,6 @@
*/
#include "common.h"
#include "logging.h"
#include "usage.h"
static const char *USAGE_MINI[] =
@@ -411,10 +410,10 @@ static const char *USAGE_BIG[] =
void usage_mini_print (const char *progname)
{
for (int i = 0; USAGE_MINI[i] != NULL; i++) log_info (USAGE_MINI[i], progname);
for (int i = 0; USAGE_MINI[i] != NULL; i++) printf (USAGE_MINI[i], progname);
}
void usage_big_print (const char *progname)
{
for (int i = 0; USAGE_BIG[i] != NULL; i++) log_info (USAGE_BIG[i], progname);
for (int i = 0; USAGE_BIG[i] != NULL; i++) printf (USAGE_BIG[i], progname);
}