summaryrefslogtreecommitdiff
path: root/japanese/namazu2/patches/patch-ah
blob: 3fadb7210b14c93386238b2dd46774ac0904ab1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-ah,v 1.1 2001/09/24 03:56:02 taca Exp $

--- nmz/util.c.orig	Sun Sep  2 16:13:37 2001
+++ nmz/util.c
@@ -102,9 +102,9 @@
  */
 
 unsigned long
-nmz_scan_oct(char *start, int len, int *retlen)
+nmz_scan_oct(const char *start, int len, int *retlen)
 {
-    register char *s = start;
+    register const char *s = start;
     register unsigned long retval = 0;
 
     while (len-- && *s >= '0' && *s <= '7') {
@@ -117,10 +117,10 @@
 }
 
 unsigned long
-nmz_scan_hex(char *start, int len, int *retlen)
+nmz_scan_hex(const char *start, int len, int *retlen)
 {
     static char hexdigit[] = "0123456789abcdef0123456789ABCDEFx";
-    register char *s = start;
+    register const char *s = start;
     register unsigned long retval = 0;
     char *tmp;