pkgsrc/net/openslp/patches/patch-af
jlam 6a8eb1ea55 Update net/openslp to 1.2.0. Changes from version 1.0.11 include:
* Support for SLP queries on multiple network interfaces
* Support for SLP query through a unicast
* DHCP code
* Added support for the net.slp.DAHeartBeat setting
* Make attribute compares case insensitive as per RFC 2608
* Added PID monitoring.  Now when the process that called SLPReg()
  (with SLP_REG_FLAG_WATCH_PID) dies the registration will automatically
  be deregistered.

patch-a[cdefg] fix compilation warnings and errors (all the world is not
Linux/i386).
2004-11-27 04:41:12 +00:00

36 lines
1,010 B
Text

$NetBSD: patch-af,v 1.1 2004/11/27 04:41:12 jlam Exp $
--- common/slp_filter_l.l.orig 2002-05-10 01:23:43.000000000 -0400
+++ common/slp_filter_l.l
@@ -76,9 +76,9 @@ static char buf[2052];
void slp_filter_error(char *, ...);
-void slp_filter_close_lexer(unsigned int handle);
+void slp_filter_close_lexer(unsigned long handle);
-unsigned int slp_filter_init_lexer(const char *s);
+unsigned long slp_filter_init_lexer(const char *s);
%}
@@ -150,16 +150,16 @@ not_reserved [^()\&|!=<>~\n]
%%
-void filter_close_lexer(unsigned int handle)
+void filter_close_lexer(unsigned long handle)
{
yy_delete_buffer((YY_BUFFER_STATE)handle);
}
-unsigned int slp_filter_init_lexer(const char *s)
+unsigned long slp_filter_init_lexer(const char *s)
{
memset(&buf[0], 0x00, 2052);
strncpy(&buf[0], s, 2048);
- return((uint)yy_scan_buffer(&buf[0], strlen(s) + 2));
+ return((unsigned long)yy_scan_buffer(&buf[0], strlen(s) + 2));
}
void slp_filter_error(char *s, ...)