svn commit: samba r7793 - in branches/SAMBA_4_0/source/param: .
tridge at samba.org
tridge at samba.org
Tue Jun 21 04:24:50 GMT 2005
Author: tridge
Date: 2005-06-21 04:24:49 +0000 (Tue, 21 Jun 2005)
New Revision: 7793
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7793
Log:
allow integers in smb.conf to be specified in octal or hex
Modified:
branches/SAMBA_4_0/source/param/loadparm.c
Changeset:
Modified: branches/SAMBA_4_0/source/param/loadparm.c
===================================================================
--- branches/SAMBA_4_0/source/param/loadparm.c 2005-06-21 04:23:05 UTC (rev 7792)
+++ branches/SAMBA_4_0/source/param/loadparm.c 2005-06-21 04:24:49 UTC (rev 7793)
@@ -1398,7 +1398,7 @@
return (-1);
}
- return atoi(s);
+ return strtol(s, NULL, 0);
}
/*******************************************************************
@@ -1412,7 +1412,7 @@
return (-1);
}
- return strtoul(s, NULL, 10);
+ return strtoul(s, NULL, 0);
}
/*******************************************************************
More information about the samba-cvs
mailing list