aboutsummaryrefslogtreecommitdiff
path: root/duser.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunk@stsci.edu>2011-04-21 09:29:55 -0400
committerJoseph Hunkeler <jhunk@stsci.edu>2011-04-21 09:29:55 -0400
commita6f2224a0da2955452f5640c00058aade6e7be0b (patch)
treee05f5fee174e55ddcf369afd39ba01e9c7d74352 /duser.h
parent7f5d9b7e41abdb98f699520d3a9464b360f7c8b9 (diff)
downloadduser-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.h9
1 files changed, 8 insertions, 1 deletions
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();