waffle

user and group backend daemon
git clone git://git.2f30.org/waffle.git
Log | Files | Refs | LICENSE

commit 2fd6c7f30467d1f0af1e2f7840b07c6c51ea03d5
parent 3149343059adb9040b3c9bcc3e15a994d7ed9756
Author: sin <sin@2f30.org>
Date:   Wed Mar 11 18:50:18 +0000

Add -v for verbose

Will be used later for diagnostic messages.

Diffstat:
waffle.c | 6+++++-
waffle.h | 1+
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/waffle.c b/waffle.c @@ -16,6 +16,7 @@ #include "waffle.h" int daemonize = 1; +int verbose = 0; char *argv0; static fd_set master; static int fdmax; @@ -93,7 +94,7 @@ del_cli(int clifd) static void usage(void) { - fprintf(stderr, "usage: %s [-d]\n", argv0); + fprintf(stderr, "usage: %s [-dv]\n", argv0); exit(1); } @@ -112,6 +113,9 @@ main(int argc, char *argv[]) case 'd': daemonize = 0; break; + case 'v': + verbose++; + break; default: usage(); } ARGEND; diff --git a/waffle.h b/waffle.h @@ -18,6 +18,7 @@ struct backend_ops { /* waffle.c */ extern int daemonize; +extern int verbose; /* dummy.c */ extern struct backend_ops dummy_ops; /* ldap.c */