aboutsummaryrefslogtreecommitdiffstats
path: root/lib/misc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2015-01-17 20:00:49 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2015-01-17 20:00:49 +0000
commit1065dd4f38c81c83934ba51526471072837700ae (patch)
tree42ea01f5040065df60917daca6605318ec4f28df /lib/misc.c
parentbc7a0d46e36a819755ca3f2b38194fb11eca0dd9 (diff)
parent6b13103dad92d505e038c268af66aeb04b7b4d87 (diff)
Merge cleanup changes. (FSF address fix, and using GLib variants of some
functions which cleans up compiler warnings.)
Diffstat (limited to 'lib/misc.c')
-rw-r--r--lib/misc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/misc.c b/lib/misc.c
index 6ceb6f3c..02b1814c 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -26,8 +26,8 @@
You should have received a copy of the GNU General Public License with
the Debian GNU/Linux distribution in /usr/share/common-licenses/GPL;
- if not, write to the Free Software Foundation, Inc., 59 Temple Place,
- Suite 330, Boston, MA 02111-1307 USA
+ if not, write to the Free Software Foundation, Inc., 51 Franklin St.,
+ Fifth Floor, Boston, MA 02110-1301 USA
*/
#define BITLBEE_CORE
@@ -162,7 +162,7 @@ void strip_html( char *in )
while( *in )
{
- if( *in == '<' && ( isalpha( *(in+1) ) || *(in+1) == '/' ) )
+ if( *in == '<' && ( g_ascii_isalpha( *(in+1) ) || *(in+1) == '/' ) )
{
/* If in points at a < and in+1 points at a letter or a slash, this is probably
a HTML-tag. Try to find a closing > and continue there. If the > can't be
@@ -197,7 +197,7 @@ void strip_html( char *in )
else if( *in == '&' )
{
cs = ++in;
- while( *in && isalpha( *in ) )
+ while( *in && g_ascii_isalpha( *in ) )
in ++;
if( *in == ';' ) in ++;
@@ -313,7 +313,7 @@ void http_encode( char *s )
strcpy( t, s );
for( i = j = 0; t[i]; i ++, j ++ )
{
- /* Warning: isalnum() is locale-aware, so don't use it here! */
+ /* Warning: g_ascii_isalnum() is locale-aware, so don't use it here! */
if( ( t[i] >= 'A' && t[i] <= 'Z' ) ||
( t[i] >= 'a' && t[i] <= 'z' ) ||
( t[i] >= '0' && t[i] <= '9' ) ||
@@ -489,7 +489,7 @@ int is_bool( char *value )
return 1;
while( *value )
- if( !isdigit( *value ) )
+ if( !g_ascii_isdigit( *value ) )
return 0;
else
value ++;