cvs commit: ports/sysutils/fcron Makefile ports/sysutils/fcron/files
patch-fileconf.c patch-subs.c
Eygene Ryabinkin
rea at FreeBSD.org
Sun Sep 25 07:24:25 UTC 2011
rea 2011-09-25 07:24:25 UTC
FreeBSD ports repository
Modified files:
sysutils/fcron Makefile
Added files:
sysutils/fcron/files patch-fileconf.c patch-subs.c
Log:
sysutils/fcron: fixup default argument promotion
When mode_t is char- or short-like, it will be promoted to the pure
int when it is passed as the variable argument [1], so we should pass
'int' to the va_arg.
I had also eliminated fflush for the stream opened read-only, since
it will always fail and there is no need to flush read-only streams.
[1] http://c-faq.com/~scs/cclass/int/sx11c.html
Feature safe: yes
PR: 152304
Revision Changes Path
1.28 +1 -0 ports/sysutils/fcron/Makefile
1.1 +15 -0 ports/sysutils/fcron/files/patch-fileconf.c (new)
1.1 +28 -0 ports/sysutils/fcron/files/patch-subs.c (new)
More information about the cvs-ports
mailing list