Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/vndcompress Omit needless XXX comment.



details:   https://anonhg.NetBSD.org/src/rev/1fc2c5bdf1e1
branches:  trunk
changeset: 823247:1fc2c5bdf1e1
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Apr 17 00:02:45 2017 +0000

description:
Omit needless XXX comment.

diffstat:

 usr.bin/vndcompress/vndcompress.c   |  6 +++---
 usr.bin/vndcompress/vnduncompress.c |  5 ++---
 2 files changed, 5 insertions(+), 6 deletions(-)

diffs (53 lines):

diff -r cad36799c357 -r 1fc2c5bdf1e1 usr.bin/vndcompress/vndcompress.c
--- a/usr.bin/vndcompress/vndcompress.c Sun Apr 16 23:50:40 2017 +0000
+++ b/usr.bin/vndcompress/vndcompress.c Mon Apr 17 00:02:45 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vndcompress.c,v 1.27 2017/04/16 23:50:40 riastradh Exp $       */
+/*     $NetBSD: vndcompress.c,v 1.28 2017/04/17 00:02:45 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: vndcompress.c,v 1.27 2017/04/16 23:50:40 riastradh Exp $");
+__RCSID("$NetBSD: vndcompress.c,v 1.28 2017/04/17 00:02:45 riastradh Exp $");
 
 #include <sys/endian.h>
 #include <sys/stat.h>
@@ -438,7 +438,7 @@
 
        int oflags;
        if (!ISSET(O->flags, FLAG_r))
-               oflags = (O_WRONLY | O_TRUNC | O_CREAT); /* XXX O_EXCL?  */
+               oflags = (O_WRONLY | O_TRUNC | O_CREAT);
        else if (!ISSET(O->flags, FLAG_R))
                oflags = (O_RDWR | O_CREAT);
        else
diff -r cad36799c357 -r 1fc2c5bdf1e1 usr.bin/vndcompress/vnduncompress.c
--- a/usr.bin/vndcompress/vnduncompress.c       Sun Apr 16 23:50:40 2017 +0000
+++ b/usr.bin/vndcompress/vnduncompress.c       Mon Apr 17 00:02:45 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vnduncompress.c,v 1.12 2017/04/16 23:50:40 riastradh Exp $     */
+/*     $NetBSD: vnduncompress.c,v 1.13 2017/04/17 00:03:33 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: vnduncompress.c,v 1.12 2017/04/16 23:50:40 riastradh Exp $");
+__RCSID("$NetBSD: vnduncompress.c,v 1.13 2017/04/17 00:03:33 riastradh Exp $");
 
 #include <sys/endian.h>
 
@@ -70,7 +70,6 @@
                err(1, "open(%s)", cloop2_pathname);
 
        const int image_fd = open(image_pathname,
-           /* XXX O_EXCL, not O_TRUNC */
            (O_WRONLY | O_CREAT | O_TRUNC), 0777);
        if (image_fd == -1)
                err(1, "open(%s)", image_pathname);



Home | Main Index | Thread Index | Old Index