bro and FreeBSD 5.0

Robin Sommer sommer at in.tum.de
Sun Feb 9 09:30:51 PST 2003


On Fri, Feb 07, 2003 at 20:14 -0600, Jon Dugan wrote:

> DebugCmds.cc: In function `int find_all_matching_cmds(const std::string&, const 
>    char**)':
> DebugCmds.cc:164: invalid conversion from `const char*' to `unsigned int'

Can you try the attached patch? There seems to be some incompatibility
from gcc <3.0 to >= 3.0.

Robin

-- 
Robin Sommer * Room        01.08.055 * www.net.in.tum.de
TU Munich    * Phone (089) 289-18006 *  sommer at in.tum.de 
-------------- next part --------------
diff -uBbNr bro-pub-0.8a22/DebugCmds.cc bro-patched/DebugCmds.cc
--- bro-pub-0.8a22/DebugCmds.cc	Wed Nov 27 02:26:50 2002
+++ bro-patched/DebugCmds.cc	Fri Jan 31 19:24:55 2003
@@ -161,7 +161,11 @@
 		for ( int j = 0; j < g_DebugCmdInfos[i]->NumNames(); ++j )
 			{
 			const char* curr_name = g_DebugCmdInfos[i]->Names()[j];
+#if __GNUC__ == 3
+			if ( prefix.compare(arglen, 0, curr_name) )
+#else
 			if ( prefix.compare(curr_name, 0, arglen) )
+#endif				
 				continue;
 
 			// If exact match, then only return that one.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20030209/387cf291/attachment.bin 


More information about the Bro mailing list