Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst Invoke magic C promotion rules as originall...



details:   https://anonhg.NetBSD.org/src/rev/f1a1693b7c91
branches:  trunk
changeset: 369754:f1a1693b7c91
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Aug 30 11:44:15 2022 +0000

description:
Invoke magic C promotion rules as originally intended - oops!
Pointed out by rillig@

diffstat:

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

diffs (25 lines):

diff -r b9c1e25d3dde -r f1a1693b7c91 usr.sbin/sysinst/disks.c
--- a/usr.sbin/sysinst/disks.c  Tue Aug 30 11:09:34 2022 +0000
+++ b/usr.sbin/sysinst/disks.c  Tue Aug 30 11:44:15 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disks.c,v 1.87 2022/08/29 17:35:15 martin Exp $ */
+/*     $NetBSD: disks.c,v 1.88 2022/08/30 11:44:15 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -148,13 +148,13 @@
 static void
 trim_name(char *name, size_t len, const char *src)
 {
-       size_t i, last = ~0U;
+       size_t i, last = ~0;
 
        for (i = 0; i < len && src[i]; i++) {
                if (isspace((unsigned int)src[i]))
                        last = i;
                else
-                       last = ~0U;
+                       last = ~0;
                name[i] = src[i];
        }
        if (i >= len)



Home | Main Index | Thread Index | Old Index