From owner-cvs-all@FreeBSD.ORG Sun Sep 25 07:24:25 2011 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7BC03106566B; Sun, 25 Sep 2011 07:24:25 +0000 (UTC) (envelope-from rea@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6C4EA8FC16; Sun, 25 Sep 2011 07:24:25 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p8P7OP1X012525; Sun, 25 Sep 2011 07:24:25 GMT (envelope-from rea@repoman.freebsd.org) Received: (from rea@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p8P7OP71012524; Sun, 25 Sep 2011 07:24:25 GMT (envelope-from rea) Message-Id: <201109250724.p8P7OP71012524@repoman.freebsd.org> From: Eygene Ryabinkin Date: Sun, 25 Sep 2011 07:24:25 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/sysutils/fcron Makefile ports/sysutils/fcron/files patch-fileconf.c patch-subs.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Sep 2011 07:24:25 -0000 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)