diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-03-04 21:03:06 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-03-04 21:03:06 +0100 |
commit | 48d51b66fac883fc8648fb6b9df487382b8addc2 (patch) | |
tree | e85684c4247e33f12417a95989210df016a35109 /nslcd/log.c | |
parent | 03fdef7f5c7667fd92232f6d055f98833bcfef19 (diff) |
code improvements by making type casts explicit, flagging ignored return values, renames and flagging of parameters and some miscelanious improvements (thanks to gcc warnings, splint, rats and flawfinder)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@265 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/log.c')
-rw-r--r-- | nslcd/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nslcd/log.c b/nslcd/log.c index d5f89de..888c53f 100644 --- a/nslcd/log.c +++ b/nslcd/log.c @@ -68,7 +68,7 @@ static void log_addlogging_fp(FILE *fp,int loglevel) { fprintf(stderr,"malloc() failed: %s",strerror(errno)); /* since this is done during initialisation it's best to bail out */ - exit(1); + exit(EXIT_FAILURE); } tmp->fp=fp; tmp->loglevel=loglevel; @@ -92,7 +92,7 @@ void log_addlogging_file(const char *filename,int loglevel) if (fp==NULL) { log_log(LOG_ERR,"cannot open logfile (%s) for appending: %s",filename,strerror(errno)); - exit(1); + exit(EXIT_FAILURE); } log_addlogging_fp(fp,loglevel); } |