Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/makefs/cd9660 Fix typos in character ranges from: B...



details:   https://anonhg.NetBSD.org/src/rev/99f07c4f7a44
branches:  trunk
changeset: 763525:99f07c4f7a44
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Mar 23 13:11:51 2011 +0000

description:
Fix typos in character ranges from: Baptiste Daroussin bapt at freebsd dot org

diffstat:

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

diffs (42 lines):

diff -r b8982fb5959b -r 99f07c4f7a44 usr.sbin/makefs/cd9660/cd9660_strings.c
--- a/usr.sbin/makefs/cd9660/cd9660_strings.c   Wed Mar 23 13:01:04 2011 +0000
+++ b/usr.sbin/makefs/cd9660/cd9660_strings.c   Wed Mar 23 13:11:51 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cd9660_strings.c,v 1.4 2007/01/16 17:32:05 hubertf Exp $       */
+/*     $NetBSD: cd9660_strings.c,v 1.5 2011/03/23 13:11:51 christos Exp $      */
 
 /*
  * Copyright (c) 2005 Daniel Watt, Walter Deignan, Ryan Gabrys, Alan
@@ -46,7 +46,7 @@
 #include "cd9660.h"
 
 #if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: cd9660_strings.c,v 1.4 2007/01/16 17:32:05 hubertf Exp $");
+__RCSID("$NetBSD: cd9660_strings.c,v 1.5 2011/03/23 13:11:51 christos Exp $");
 #endif  /* !__lint */
 
 
@@ -62,19 +62,19 @@
 }
 
 static inline int
-cd9660_is_a_char(char c)
+cd9660_is_d_char(char c)
 {
        return (isupper((unsigned char)c)
                || c == '_'
-               || (c >= '0' && c <= '?'));
+               || (c >= '0' && c <= '9'));
 }
 
 static inline int
-cd9660_is_d_char(char c)
+cd9660_is_a_char(char c)
 {
        return (isupper((unsigned char)c)
                        || c == '_'
-                       || (c >= '%' && c <= '9')
+                       || (c >= '%' && c <= '?')
                        || (c >= ' ' && c <= '\"'));
 }
 



Home | Main Index | Thread Index | Old Index