Module Name: src
Committed By: dholland
Date: Sat Mar 12 02:15:50 UTC 2016
Modified Files:
src/sys/arch/atari/stand/tostools/file2swp: file2swp.c
Log Message:
Fix syntax error in previous. Hi christos :-)
(PR 50944)
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 \
src/sys/arch/atari/stand/tostools/file2swp/file2swp.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/atari/stand/tostools/file2swp/file2swp.c
diff -u src/sys/arch/atari/stand/tostools/file2swp/file2swp.c:1.7 src/sys/arch/atari/stand/tostools/file2swp/file2swp.c:1.8
--- src/sys/arch/atari/stand/tostools/file2swp/file2swp.c:1.7 Fri Mar 11 18:29:48 2016
+++ src/sys/arch/atari/stand/tostools/file2swp/file2swp.c Sat Mar 12 02:15:50 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: file2swp.c,v 1.7 2016/03/11 18:29:48 christos Exp $ */
+/* $NetBSD: file2swp.c,v 1.8 2016/03/12 02:15:50 dholland Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include "cread.h"
char *Infile = "minifs.gz";
-const char version[] = "$Revision: 1.7 $";
+const char version[] = "$Revision: 1.8 $";
extern const char *program_name;
@@ -126,7 +126,7 @@ main(int argc, char **argv)
case 'y':
case 'Y':
currblk = start;
- while((c = read(fd, buf, sizeof(buf)) > 0) {
+ while ((c = read(fd, buf, sizeof(buf))) > 0) {
if (disk_write(dd, currblk, 1, buf) < 0) {
eprintf("Error writing to swap partition\n");
xexit(1);