Module Name: src Committed By: lukem Date: Sun Apr 12 23:38:17 UTC 2009
Modified Files: src/usr.bin/nohup: nohup.c Log Message: Fix -Wcast-qual issue To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/usr.bin/nohup/nohup.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/nohup/nohup.c diff -u src/usr.bin/nohup/nohup.c:1.13 src/usr.bin/nohup/nohup.c:1.14 --- src/usr.bin/nohup/nohup.c:1.13 Mon Jul 21 14:19:24 2008 +++ src/usr.bin/nohup/nohup.c Sun Apr 12 23:38:17 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: nohup.c,v 1.13 2008/07/21 14:19:24 lukem Exp $ */ +/* $NetBSD: nohup.c,v 1.14 2009/04/12 23:38:17 lukem Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. @@ -39,7 +39,7 @@ #if 0 static char sccsid[] = "@(#)nohup.c 5.4 (Berkeley) 6/1/90"; #endif -__RCSID("$NetBSD: nohup.c,v 1.13 2008/07/21 14:19:24 lukem Exp $"); +__RCSID("$NetBSD: nohup.c,v 1.14 2009/04/12 23:38:17 lukem Exp $"); #endif /* not lint */ #include <sys/param.h> @@ -103,7 +103,8 @@ dofile() { int fd; - char *p, path[MAXPATHLEN]; + char path[MAXPATHLEN]; + const char *p; /* If the standard output is a terminal, all output written to its standard output shall be appended to the end of the file