Module Name: src
Committed By: lukem
Date: Mon Apr 13 23:44:50 UTC 2009
Modified Files:
src/usr.bin/tcopy: tcopy.c
Log Message:
Fix -Wcast-qual issue
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/tcopy/tcopy.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/tcopy/tcopy.c
diff -u src/usr.bin/tcopy/tcopy.c:1.15 src/usr.bin/tcopy/tcopy.c:1.16
--- src/usr.bin/tcopy/tcopy.c:1.15 Mon Jul 21 14:19:26 2008
+++ src/usr.bin/tcopy/tcopy.c Mon Apr 13 23:44:49 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: tcopy.c,v 1.15 2008/07/21 14:19:26 lukem Exp $ */
+/* $NetBSD: tcopy.c,v 1.16 2009/04/13 23:44:49 lukem Exp $ */
/*
* Copyright (c) 1985, 1987, 1993, 1995
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)tcopy.c 8.3 (Berkeley) 1/23/95";
#endif
-__RCSID("$NetBSD: tcopy.c,v 1.15 2008/07/21 14:19:26 lukem Exp $");
+__RCSID("$NetBSD: tcopy.c,v 1.16 2009/04/13 23:44:49 lukem Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -82,7 +82,8 @@
ssize_t lastnread, nread;
enum {READ, VERIFY, COPY, COPYVERIFY} op = READ;
sig_t oldsig;
- char *buff, *inf;
+ char *buff;
+ const char *inf;
outp = 0;
inf = NULL;