From owner-svn-src-all@FreeBSD.ORG Mon Jan 18 23:09:08 2010 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 16DF41065670; Mon, 18 Jan 2010 23:09:08 +0000 (UTC) (envelope-from wkoszek@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 068208FC14; Mon, 18 Jan 2010 23:09:08 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o0IN976Y005599; Mon, 18 Jan 2010 23:09:07 GMT (envelope-from wkoszek@svn.freebsd.org) Received: (from wkoszek@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o0IN97c9005596; Mon, 18 Jan 2010 23:09:07 GMT (envelope-from wkoszek@svn.freebsd.org) Message-Id: <201001182309.o0IN97c9005596@svn.freebsd.org> From: "Wojciech A. Koszek" Date: Mon, 18 Jan 2010 23:09:07 +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: r202602 - head/share/examples/kld/syscall/test 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: Mon, 18 Jan 2010 23:09:08 -0000 Author: wkoszek Date: Mon Jan 18 23:09:07 2010 New Revision: 202602 URL: http://svn.freebsd.org/changeset/base/202602 Log: Small cleanup while being here: - sort includes - remove usage(), since it seems to come from older version of the KLD - remove unnecessary variable - mark argc/argv as unused Bring WARNS = 5 to the Makefile. Modified: head/share/examples/kld/syscall/test/Makefile head/share/examples/kld/syscall/test/call.c Modified: head/share/examples/kld/syscall/test/Makefile ============================================================================== --- head/share/examples/kld/syscall/test/Makefile Mon Jan 18 23:04:38 2010 (r202601) +++ head/share/examples/kld/syscall/test/Makefile Mon Jan 18 23:09:07 2010 (r202602) @@ -3,5 +3,6 @@ PROG= call NO_MAN= +WARNS+= 5 .include Modified: head/share/examples/kld/syscall/test/call.c ============================================================================== --- head/share/examples/kld/syscall/test/call.c Mon Jan 18 23:04:38 2010 (r202601) +++ head/share/examples/kld/syscall/test/call.c Mon Jan 18 23:09:07 2010 (r202602) @@ -26,26 +26,17 @@ * $FreeBSD$ */ -#include -#include -#include -#include #include #include +#include -static void usage (void); - -static void -usage (void) -{ - fprintf (stderr, "call syscall-number\n"); - exit (1); -} +#include +#include +#include int -main(int argc, char **argv) +main(int argc __unused, char **argv __unused) { - char *endptr; int syscall_num; struct module_stat stat;