The Samba-Bugzilla – Bug 2085
lib/util.c: 'Protocol' is defined with the wrong type
Last modified: 2005-08-24 10:17:17 UTC
cc-1185 cc: WARNING File = lib/util.c, Line = 2355
An enumerated type is mixed with another type.
return ms_fnmatch(pattern, string, Protocol, is_case_sensitive) == 0;
in the function called on return, Protocol was globally defined an 'int' on line 52, instead of 'enum
protocol_types' (line 1323 of lib/smb.h).
ms_fnmatch() is defined in lib/ms_fnmatch.c line 149:
int ms_fnmatch(const char *pattern, const char *string, enum protocol_types protocol, BOOL
Protocol should probably be defined as 'enum protocol_types'.
Changed Protocol to enum - thanks !
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.