diff options
author | Joseph Hunkeler <jhunk@stsci.edu> | 2011-04-21 09:29:55 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunk@stsci.edu> | 2011-04-21 09:29:55 -0400 |
commit | a6f2224a0da2955452f5640c00058aade6e7be0b (patch) | |
tree | e05f5fee174e55ddcf369afd39ba01e9c7d74352 /duser.h | |
parent | 7f5d9b7e41abdb98f699520d3a9464b360f7c8b9 (diff) | |
download | duser-a6f2224a0da2955452f5640c00058aade6e7be0b.tar.gz |
Utilizing static progname variable. Local variables removed from functions that used it. Added version().
Diffstat (limited to 'duser.h')
-rw-r--r-- | duser.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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(); |