<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[Freeswitch-trunk][15248] </title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<div id="header">FreeSWITCH Subversion</div>
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://fisheye.freeswitch.org/changelog/FreeSWITCH?cs=15248">15248</a></dd>
<dt>Author</dt> <dd>anthm</dd>
<dt>Date</dt> <dd>2009-10-27 09:26:16 -0500 (Tue, 27 Oct 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>convert contrib mods to zstr</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#freeswitchtrunkcontribcparkermod_xml_radiusmod_xml_radiusc">freeswitch/trunk/contrib/cparker/mod_xml_radius/mod_xml_radius.c</a></li>
<li><a href="#freeswitchtrunkcontribdschreibermod_nibblebillmod_nibblebillc">freeswitch/trunk/contrib/dschreiber/mod_nibblebill/mod_nibblebill.c</a></li>
<li><a href="#freeswitchtrunkcontribjtregunnamod_fastsmsmod_fastsmsc">freeswitch/trunk/contrib/jtregunna/mod_fastsms/mod_fastsms.c</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="freeswitchtrunkcontribcparkermod_xml_radiusmod_xml_radiusc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/contrib/cparker/mod_xml_radius/mod_xml_radius.c (15247 => 15248)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/cparker/mod_xml_radius/mod_xml_radius.c        2009-10-27 14:01:13 UTC (rev 15247)
+++ freeswitch/trunk/contrib/cparker/mod_xml_radius/mod_xml_radius.c        2009-10-27 14:26:16 UTC (rev 15248)
</span><span class="lines">@@ -157,7 +157,7 @@
</span><span class="cx">                 return SWITCH_STATUS_FALSE;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if (switch_strlen_zero(cmd)) {
</del><ins>+        if (zstr(cmd)) {
</ins><span class="cx">                 goto usage;
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -188,7 +188,7 @@
</span><span class="cx">     switch_xml_t xml_in_tmp = NULL;
</span><span class="cx">     int i;
</span><span class="cx"> 
</span><del>-        if (switch_strlen_zero(xml_out-&gt;name)) {
</del><ins>+        if (zstr(xml_out-&gt;name)) {
</ins><span class="cx">                 xml_out-&gt;name = strdup(xml_in-&gt;name);
</span><span class="cx">         } else if (!(xml_out = switch_xml_add_child_d(xml_out, xml_in-&gt;name, *off++))) {
</span><span class="cx">         return SWITCH_STATUS_FALSE;
</span><span class="lines">@@ -540,7 +540,7 @@
</span><span class="cx">                 binding-&gt;bindings = strdup(bname);
</span><span class="cx"> 
</span><span class="cx">                 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, &quot;Binding [%s] XML RADIUS Fetch Function [%s]\n&quot;,
</span><del>-                        switch_strlen_zero(bname) ? &quot;N/A&quot; : bname, binding-&gt;bindings ? binding-&gt;bindings : &quot;all&quot;);
</del><ins>+                        zstr(bname) ? &quot;N/A&quot; : bname, binding-&gt;bindings ? binding-&gt;bindings : &quot;all&quot;);
</ins><span class="cx">                 switch_xml_bind_search_function(xml_radius_search, switch_xml_parse_section_string(bname), binding);
</span><span class="cx">                 binding = NULL;
</span><span class="cx">         }
</span></span></pre></div>
<a id="freeswitchtrunkcontribdschreibermod_nibblebillmod_nibblebillc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/contrib/dschreiber/mod_nibblebill/mod_nibblebill.c (15247 => 15248)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/dschreiber/mod_nibblebill/mod_nibblebill.c        2009-10-27 14:01:13 UTC (rev 15247)
+++ freeswitch/trunk/contrib/dschreiber/mod_nibblebill/mod_nibblebill.c        2009-10-27 14:26:16 UTC (rev 15248)
</span><span class="lines">@@ -191,22 +191,22 @@
</span><span class="cx">         
</span><span class="cx"> /* Set defaults for any variables still not set */
</span><span class="cx"> setdefaults:
</span><del>-        if (switch_strlen_zero(globals.db_username)) {
</del><ins>+        if (zstr(globals.db_username)) {
</ins><span class="cx">                 set_global_db_username(&quot;bandwidth.com&quot;);
</span><span class="cx">         }
</span><del>-        if (switch_strlen_zero(globals.db_password)) {
</del><ins>+        if (zstr(globals.db_password)) {
</ins><span class="cx">                 set_global_db_password(&quot;dev&quot;);
</span><span class="cx">         }
</span><del>-        if (switch_strlen_zero(globals.db_dsn)) {
</del><ins>+        if (zstr(globals.db_dsn)) {
</ins><span class="cx">                 set_global_db_dsn(&quot;bandwidth.com&quot;);
</span><span class="cx">         }
</span><del>-        if (switch_strlen_zero(globals.percall_action)) {
</del><ins>+        if (zstr(globals.percall_action)) {
</ins><span class="cx">                 set_global_percall_action(&quot;hangup&quot;);
</span><span class="cx">         }
</span><del>-        if (switch_strlen_zero(globals.lowbal_action)) {
</del><ins>+        if (zstr(globals.lowbal_action)) {
</ins><span class="cx">                 set_global_lowbal_action(&quot;play ding&quot;);
</span><span class="cx">         }
</span><del>-        if (switch_strlen_zero(globals.nobal_action)) {
</del><ins>+        if (zstr(globals.nobal_action)) {
</ins><span class="cx">                 set_global_nobal_action(&quot;hangup&quot;);
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -719,7 +719,7 @@
</span><span class="cx">         char *lbuf = NULL;
</span><span class="cx">         char *argv[3] = { 0 };
</span><span class="cx"> 
</span><del>-        if (!switch_strlen_zero(data) &amp;&amp; (lbuf = switch_core_session_strdup(session, data))
</del><ins>+        if (!zstr(data) &amp;&amp; (lbuf = switch_core_session_strdup(session, data))
</ins><span class="cx">                 &amp;&amp; (argc = switch_separate_string(lbuf, ' ', argv, (sizeof(argv) / sizeof(argv[0]))))) {
</span><span class="cx">                 if (!strcasecmp(argv[0], &quot;adjust&quot;) &amp;&amp; argc == 2) {
</span><span class="cx">                         nibblebill_adjust(session, atof(argv[1]));
</span><span class="lines">@@ -748,9 +748,9 @@
</span><span class="cx">         char *mycmd = NULL, *argv[3] = { 0 };
</span><span class="cx">         int argc = 0;
</span><span class="cx"> 
</span><del>-        if (!switch_strlen_zero(cmd) &amp;&amp; (mycmd = strdup(cmd))) {
</del><ins>+        if (!zstr(cmd) &amp;&amp; (mycmd = strdup(cmd))) {
</ins><span class="cx">                 argc = switch_separate_string(mycmd, ' ', argv, (sizeof(argv) / sizeof(argv[0])));
</span><del>-                if ((argc == 2 || argc == 3) &amp;&amp; !switch_strlen_zero(argv[0])) {
</del><ins>+                if ((argc == 2 || argc == 3) &amp;&amp; !zstr(argv[0])) {
</ins><span class="cx">                         char *uuid = argv[0];
</span><span class="cx">                         if ((psession = switch_core_session_locate(uuid))) {
</span><span class="cx">                                 switch_channel_t *channel;
</span></span></pre></div>
<a id="freeswitchtrunkcontribjtregunnamod_fastsmsmod_fastsmsc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/contrib/jtregunna/mod_fastsms/mod_fastsms.c (15247 => 15248)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jtregunna/mod_fastsms/mod_fastsms.c        2009-10-27 14:01:13 UTC (rev 15247)
+++ freeswitch/trunk/contrib/jtregunna/mod_fastsms/mod_fastsms.c        2009-10-27 14:26:16 UTC (rev 15248)
</span><span class="lines">@@ -88,7 +88,7 @@
</span><span class="cx">         char* text = NULL;
</span><span class="cx">         const char* originator = switch_channel_get_variable(channel, &quot;fastsms_originator&quot;);
</span><span class="cx"> 
</span><del>-        if (!switch_strlen_zero(data)) {
</del><ins>+        if (!zstr(data)) {
</ins><span class="cx">                 msisdn = switch_core_session_strdup(session, data);
</span><span class="cx">                 text = strchr(msisdn, ' ');
</span><span class="cx">                 if (text)
</span></span></pre>
</div>
</div>
<div id="footer">See you at ClueCon</div>

</body>
</html>