svn commit: samba r26436 - in branches/SAMBA_4_0: . source/param

jelmer at samba.org jelmer at samba.org
Thu Dec 13 22:46:41 GMT 2007


Author: jelmer
Date: 2007-12-13 22:46:41 +0000 (Thu, 13 Dec 2007)
New Revision: 26436

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=26436

Log:
Remove default of 0 for integer parameters when a lp_ctx of NULL is specified 
Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/param/loadparm.c


Changeset:

Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/SAMBA_4_0/source/param/loadparm.c
===================================================================
--- branches/SAMBA_4_0/source/param/loadparm.c	2007-12-13 22:46:37 UTC (rev 26435)
+++ branches/SAMBA_4_0/source/param/loadparm.c	2007-12-13 22:46:41 UTC (rev 26436)
@@ -611,7 +611,7 @@
  char fn_name(void) {return(*(char *)(ptr));}
 #endif
 #define FN_GLOBAL_INTEGER(fn_name,var_name) \
- int fn_name(struct loadparm_context *lp_ctx) {if (lp_ctx == NULL) return 0; return lp_ctx->globals->var_name;}
+ int fn_name(struct loadparm_context *lp_ctx) {return lp_ctx->globals->var_name;}
 
 #define FN_LOCAL_STRING(fn_name,val) \
  const char *fn_name(struct loadparm_service *service) {return(lp_string((const char *)((service != NULL && service->val != NULL) ? service->val : sDefault.val)));}



More information about the samba-cvs mailing list