diff options
author | Jim Meyering <jim@meyering.net> | 2002-04-25 18:02:52 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-04-25 18:02:52 +0000 |
commit | de9a50b611c1ce70954dbb804b8a1163503ed12a (patch) | |
tree | c09efd93b5ca84656c4988ec6f9aa23cd68c09e5 /src | |
parent | b6dd48b3614706dd3612028b8da4ad547328553d (diff) | |
download | coreutils-de9a50b611c1ce70954dbb804b8a1163503ed12a.tar.xz |
Avoid warnings from gcc.
Declare input_file and output_file to be `const'.
(skip): Declare `file' parameter to be `const', too.
Diffstat (limited to 'src')
-rw-r--r-- | src/dd.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,5 +1,5 @@ /* dd -- convert a file while copying it. - Copyright (C) 85, 90, 91, 1995-2001 Free Software Foundation, Inc. + Copyright (C) 85, 90, 91, 1995-2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -89,10 +89,10 @@ char *program_name; /* The name of the input file, or NULL for the standard input. */ -static char *input_file = NULL; +static char const *input_file = NULL; /* The name of the output file, or NULL for the standard output. */ -static char *output_file = NULL; +static char const *output_file = NULL; /* The number of bytes in which atomic reads are done. */ static size_t input_blocksize = 0; @@ -793,7 +793,8 @@ skip_via_lseek (char const *filename, int fdesc, off_t offset, int whence) nonzero. */ static void -skip (int fdesc, char *file, uintmax_t records, size_t blocksize, char *buf) +skip (int fdesc, char const *file, uintmax_t records, size_t blocksize, + char *buf) { off_t offset = records * blocksize; |