summaryrefslogtreecommitdiffstats
path: root/bin/dd/dd.c
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1996-12-14 06:08:03 +0000
committersteve <steve@FreeBSD.org>1996-12-14 06:08:03 +0000
commitc5d0f9cb3928db35413db774a96dc2a8eb85b141 (patch)
tree2f12bbee87f3b5e7477f863c11ba6545497513ad /bin/dd/dd.c
parent0aef04187c65f5b7c84d848d3becef7ee602a9d9 (diff)
downloadFreeBSD-src-c5d0f9cb3928db35413db774a96dc2a8eb85b141.zip
FreeBSD-src-c5d0f9cb3928db35413db774a96dc2a8eb85b141.tar.gz
-Wall cleaning.
Diffstat (limited to 'bin/dd/dd.c')
-rw-r--r--bin/dd/dd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/dd/dd.c b/bin/dd/dd.c
index a86c130..cccb360 100644
--- a/bin/dd/dd.c
+++ b/bin/dd/dd.c
@@ -34,17 +34,17 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: dd.c,v 1.6 1996/11/12 23:09:09 phk Exp $
+ * $Id: dd.c,v 1.7 1996/11/13 19:59:58 phk Exp $
*/
#ifndef lint
-static char copyright[] =
+static char const copyright[] =
"@(#) Copyright (c) 1991, 1993, 1994\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)dd.c 8.5 (Berkeley) 4/2/94";
+static char const sccsid[] = "@(#)dd.c 8.5 (Berkeley) 4/2/94";
#endif /* not lint */
#include <sys/param.h>
@@ -169,7 +169,7 @@ setup()
* Truncate the output file; ignore errors because it fails on some
* kinds of output files, tapes, for example.
*/
- if (ddflags & (C_OF | C_SEEK | C_NOTRUNC) == (C_OF | C_SEEK))
+ if ((ddflags & (C_OF | C_SEEK | C_NOTRUNC)) == (C_OF | C_SEEK))
(void)ftruncate(out.fd, (off_t)out.offset * out.dbsz);
/*
OpenPOWER on IntegriCloud