From owner-svn-src-all@FreeBSD.ORG Wed May 18 20:52:52 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AF6E1065674; Wed, 18 May 2011 20:52:52 +0000 (UTC) (envelope-from benl@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7241B8FC13; Wed, 18 May 2011 20:52:52 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p4IKqqjj008072; Wed, 18 May 2011 20:52:52 GMT (envelope-from benl@svn.freebsd.org) Received: (from benl@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p4IKqqeV008068; Wed, 18 May 2011 20:52:52 GMT (envelope-from benl@svn.freebsd.org) Message-Id: <201105182052.p4IKqqeV008068@svn.freebsd.org> From: Ben Laurie Date: Wed, 18 May 2011 20:52:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r222080 - head/usr.bin/rpcgen X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2011 20:52:52 -0000 Author: benl Date: Wed May 18 20:52:52 2011 New Revision: 222080 URL: http://svn.freebsd.org/changeset/base/222080 Log: Fix clang warnings. Note: these were actually bugs (printf with no format string). Approved by: philip (mentor) Modified: head/usr.bin/rpcgen/rpc_hout.c head/usr.bin/rpcgen/rpc_svcout.c head/usr.bin/rpcgen/rpc_tblout.c Modified: head/usr.bin/rpcgen/rpc_hout.c ============================================================================== --- head/usr.bin/rpcgen/rpc_hout.c Wed May 18 20:38:28 2011 (r222079) +++ head/usr.bin/rpcgen/rpc_hout.c Wed May 18 20:52:52 2011 (r222080) @@ -500,7 +500,7 @@ pdeclaration(const char *name, declarati break; } } - f_print(fout, separator); + fputs(separator, fout); } static int Modified: head/usr.bin/rpcgen/rpc_svcout.c ============================================================================== --- head/usr.bin/rpcgen/rpc_svcout.c Wed May 18 20:38:28 2011 (r222079) +++ head/usr.bin/rpcgen/rpc_svcout.c Wed May 18 20:52:52 2011 (r222080) @@ -349,7 +349,7 @@ write_real_program(definition *def) f_print(fout, "("); /* arg name */ if (proc->arg_num > 1) - f_print(fout, proc->args.argname); + fputs(proc->args.argname, fout); else ptype(proc->args.decls->decl.prefix, proc->args.decls->decl.type, 0); Modified: head/usr.bin/rpcgen/rpc_tblout.c ============================================================================== --- head/usr.bin/rpcgen/rpc_tblout.c Wed May 18 20:38:28 2011 (r222079) +++ head/usr.bin/rpcgen/rpc_tblout.c Wed May 18 20:52:52 2011 (r222080) @@ -103,7 +103,7 @@ write_table(definition *def) expected = 0; } else { expected = 1; - f_print(fout, null_entry); + fputs(null_entry, fout); } for (proc = vp->procs; proc != NULL; proc = proc->next) { current = atoi(proc->proc_num); @@ -141,7 +141,7 @@ write_table(definition *def) } /* print the table trailer */ - f_print(fout, tbl_end); + fputs(tbl_end, fout); f_print(fout, tbl_nproc, progvers, progvers, progvers); } }