From owner-svn-src-all@FreeBSD.ORG Mon Jan 18 23:13:23 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 21FB11065676; Mon, 18 Jan 2010 23:13:23 +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 117EC8FC14; Mon, 18 Jan 2010 23:13:23 +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 o0INDMlx006578; Mon, 18 Jan 2010 23:13:22 GMT (envelope-from wkoszek@svn.freebsd.org) Received: (from wkoszek@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o0INDMNE006575; Mon, 18 Jan 2010 23:13:22 GMT (envelope-from wkoszek@svn.freebsd.org) Message-Id: <201001182313.o0INDMNE006575@svn.freebsd.org> From: "Wojciech A. Koszek" Date: Mon, 18 Jan 2010 23:13:22 +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: r202603 - head/share/examples/kld/cdev/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:13:23 -0000 Author: wkoszek Date: Mon Jan 18 23:13:22 2010 New Revision: 202603 URL: http://svn.freebsd.org/changeset/base/202603 Log: Include unistd.h for read(), write() and stdlib.h for exit(). Bump WARNS to 5 while being here. Modified: head/share/examples/kld/cdev/test/Makefile head/share/examples/kld/cdev/test/testcdev.c Modified: head/share/examples/kld/cdev/test/Makefile ============================================================================== --- head/share/examples/kld/cdev/test/Makefile Mon Jan 18 23:09:07 2010 (r202602) +++ head/share/examples/kld/cdev/test/Makefile Mon Jan 18 23:13:22 2010 (r202603) @@ -68,6 +68,7 @@ # PROG= testcdev NO_MAN= +WARNS= 5 MODSTAT= /sbin/kldstat Modified: head/share/examples/kld/cdev/test/testcdev.c ============================================================================== --- head/share/examples/kld/cdev/test/testcdev.c Mon Jan 18 23:09:07 2010 (r202602) +++ head/share/examples/kld/cdev/test/testcdev.c Mon Jan 18 23:13:22 2010 (r202603) @@ -70,13 +70,15 @@ * * $FreeBSD$ */ +#include +#include #include +#include #include #include #include -#include -#include +#include #define CDEV_IOCTL1 _IOR('C', 1, u_int) #define CDEV_DEVICE "cdev" @@ -85,7 +87,7 @@ static char writestr[] = "Hello kernel!" static char buf[512+1]; int -main(int argc, char *argv[]) +main(int argc __unused, char *argv[] __unused) { int kernel_fd; int one;