From a6f2224a0da2955452f5640c00058aade6e7be0b Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 21 Apr 2011 09:29:55 -0400 Subject: Utilizing static progname variable. Local variables removed from functions that used it. Added version(). --- duser.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'duser.h') diff --git a/duser.h b/duser.h index 326a1d2..2101e4b 100644 --- a/duser.h +++ b/duser.h @@ -25,6 +25,12 @@ #define REGEX_MAX 255 #define CFG_PATH "/usr/local/etc/duser" #define SELF __FUNCTION__ +#ifndef _NLINUX_ +# define FMTLIST "%20s\t%5d%23s\n" +#else +# define FMTLIST "%20s\t%5d%16s\n" +#endif + typedef struct stats_t { int lines; @@ -34,6 +40,7 @@ typedef struct stats_t int deleted; int modified; } stats_t; + //Global statistics struct stats_t processed; @@ -48,7 +55,7 @@ typedef struct record_t int pad3; } record_t; -void usage(const char* progname); +void usage(); int strval(const char* str); int strfind(const char* str1, const char* str2); int logcleanup(); -- cgit