Initialize program name in openlog

pull/5/head
Michael Spang 15 years ago
parent 42c64f6c87
commit f2b2d5e83f
  1. 2
      src/addclub.c
  2. 2
      src/addmember.c

@ -161,11 +161,11 @@ int addclub() {
int main(int argc, char *argv[]) {
int opt;
prog = basename(argv[0]);
openlog(prog, 0, LOG_AUTHPRIV);
configure();
prog = basename(argv[0]);
user = ceo_get_user();
privileged = ceo_get_privileged();

@ -165,11 +165,11 @@ int addmember() {
int main(int argc, char *argv[]) {
int opt;
prog = basename(argv[0]);
openlog(prog, 0, LOG_AUTHPRIV);
configure();
prog = basename(argv[0]);
user = ceo_get_user();
privileged = ceo_get_privileged();

Loading…
Cancel
Save