[PATCH] parametric options and default values

Stefan (metze) Metzmacher metze at metzemix.de
Thu Apr 3 08:42:15 GMT 2003


Hi Alexander,

here's the patch for the parametric options.

1. the lp_param_string_list() don't alloc the list on each call
(so the caller should not free the list!)

2. all functions got a default parameter
(that's very important for the int, ulong, bool and enum functions
because atoi() can't handle can't handle empty parameters)

Please read the patch carefull and don't want to introduce bugs :-)

in most cases we should use lp_parm_const_string() instead of lp_parm_string()

to avoid talloc() on each call!

this patch also includes some const fixes in mysql.c witch fixes all 
warnings...
(Jelmer would you please verify to me and ab that the mysql.c changes are ok)

comments are welcome...


metze
-----------------------------------------------------------------------------
Stefan "metze" Metzmacher <metze at metzemix.de> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: param-01.diff
Type: application/octet-stream
Size: 20819 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20030403/9cc74530/param-01.obj


More information about the samba-technical mailing list