Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/makefs rock_ridge_move_count is only incremented an...



details:   https://anonhg.NetBSD.org/src/rev/011676997221
branches:  trunk
changeset: 945942:011676997221
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Tue Nov 10 20:48:29 2020 +0000

description:
rock_ridge_move_count is only incremented and can never be negative so change
%08i to %08u.
This removes a warning when compiling with tools outside ./build.sh

diffstat:

 usr.sbin/makefs/cd9660.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2a3b9062e20e -r 011676997221 usr.sbin/makefs/cd9660.c
--- a/usr.sbin/makefs/cd9660.c  Tue Nov 10 20:44:18 2020 +0000
+++ b/usr.sbin/makefs/cd9660.c  Tue Nov 10 20:48:29 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cd9660.c,v 1.56 2019/10/18 04:09:02 msaitoh Exp $      */
+/*     $NetBSD: cd9660.c,v 1.57 2020/11/10 20:48:29 reinoud Exp $      */
 
 /*
  * Copyright (c) 2005 Daniel Watt, Walter Deignan, Ryan Gabrys, Alan
@@ -103,7 +103,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: cd9660.c,v 1.56 2019/10/18 04:09:02 msaitoh Exp $");
+__RCSID("$NetBSD: cd9660.c,v 1.57 2020/11/10 20:48:29 reinoud Exp $");
 #endif  /* !__lint */
 
 #include <string.h>
@@ -1295,7 +1295,7 @@
                return NULL;
 
        diskStructure->rock_ridge_move_count++;
-       snprintf(newname, sizeof(newname), "%08i",
+       snprintf(newname, sizeof(newname), "%08u",
            diskStructure->rock_ridge_move_count);
 
        /* Point to old parent */



Home | Main Index | Thread Index | Old Index