]> granicus.if.org Git - cronie/commit
smatch scan: fix various warningss found using smatch
authorSami Kerola <kerolasa@iki.fi>
Sat, 29 Dec 2012 16:19:15 +0000 (16:19 +0000)
committerTomas Mraz <tmraz@fedoraproject.org>
Thu, 17 Jan 2013 13:06:15 +0000 (14:06 +0100)
commit5cf2a3c05aa96daeb3ceaac67c3ba43a889916d6
treea119cc35b709fb17058fd2e389e806fe19459770
parentb88cd1c4c88180d11cf10110fcea5d6bfa9f6319
smatch scan: fix various warningss found using smatch

entry.c:396 load_entry() info: redundant null check on e->pwd calling free()
entry.c:398 load_entry() info: redundant null check on e->cmd calling free()

/usr/include/bits/fcntl.h:48:10: warning: preprocessor token O_NOFOLLOW redefined
macros.h:136:9: this was the original definition

security.c:98:44: warning: non-ANSI function declaration of function 'cron_restore_default_security_context'
crontab.c:439:29: warning: non-ANSI function declaration of function 'tmp_path'

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
src/crontab.c
src/entry.c
src/macros.h
src/security.c