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 PR/50944: David Binde...



details:   https://anonhg.NetBSD.org/src/rev/039791cb23ed
branches:  trunk
changeset: 344052:039791cb23ed
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Mar 11 18:29:48 2016 +0000

description:
PR/50944: David Binderman: sprinkle parens

diffstat:

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

diffs (27 lines):

diff -r 754b6cab4850 -r 039791cb23ed sys/arch/atari/stand/tostools/file2swp/file2swp.c
--- a/sys/arch/atari/stand/tostools/file2swp/file2swp.c Fri Mar 11 18:28:43 2016 +0000
+++ b/sys/arch/atari/stand/tostools/file2swp/file2swp.c Fri Mar 11 18:29:48 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: file2swp.c,v 1.6 2009/03/18 10:22:26 cegger Exp $      */
+/*     $NetBSD: file2swp.c,v 1.7 2016/03/11 18:29:48 christos Exp $    */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 #include "cread.h"
 
 char           *Infile = "minifs.gz";
-const char     version[] = "$Revision: 1.6 $";
+const char     version[] = "$Revision: 1.7 $";
 
 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