summaryrefslogtreecommitdiff
path: root/net/openslp/patches/patch-ae
blob: 2d42daab45f339286926dfdddf63d9ea50f5c265 (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
30
31
32
33
34
$NetBSD: patch-ae,v 1.1 2004/11/27 04:41:12 jlam Exp $

--- common/slp_attr_l.l.orig	2002-05-10 01:23:43.000000000 -0400
+++ common/slp_attr_l.l
@@ -82,9 +82,9 @@ int slp_attr_wrap(void);
 
 int slp_attr_lex(void);
 
-void slp_attr_close_lexer(unsigned int handle);
+void slp_attr_close_lexer(unsigned long handle);
 
-uint slp_attr_init_lexer(char *s);
+unsigned long slp_attr_init_lexer(char *s);
 
 
 %}
@@ -194,14 +194,14 @@ val				[^(),\\!<>~\x00-\x1f*_\r\n\t]
 
 %%
 
-unsigned int slp_attr_init_lexer(char *s)
+unsigned long slp_attr_init_lexer(char *s)
 {
     memset(&buf[0], 0x00, 2052);
     strncpy(&buf[0], s, 2052);
-    return((uint)yy_scan_buffer(&buf[0], strlen(s) + 2));
+    return((unsigned long)yy_scan_buffer(&buf[0], strlen(s) + 2));
 }
 
-void attr_close_lexer(uint handle)
+void attr_close_lexer(unsigned long handle)
 {
     // assert(handle != 0);
     yy_delete_buffer((YY_BUFFER_STATE)handle);