Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/atari/stand/tostools/file2swp Fix syntax error in p...



details:   https://anonhg.NetBSD.org/src/rev/ba1d5061026e
branches:  trunk
changeset: 344070:ba1d5061026e
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Mar 12 02:15:50 2016 +0000

description:
Fix syntax error in previous. Hi christos :-)
(PR 50944)

diffstat:

 sys/arch/atari/stand/tostools/file2swp/file2swp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7bdaff0fe930 -r ba1d5061026e sys/arch/atari/stand/tostools/file2swp/file2swp.c
--- a/sys/arch/atari/stand/tostools/file2swp/file2swp.c Sat Mar 12 02:13:35 2016 +0000
+++ b/sys/arch/atari/stand/tostools/file2swp/file2swp.c Sat Mar 12 02:15:50 2016 +0000
@@ -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 @@
          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);



Home | Main Index | Thread Index | Old Index