changeset 21549:a3ed675a63b5

Suppress warning
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 16 Nov 2007 05:31:39 +0000
parents 0015b58bee6f
children 169eebdf8e8e
files libpurple/win32/libc_interface.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/win32/libc_interface.c	Fri Nov 16 05:14:14 2007 +0000
+++ b/libpurple/win32/libc_interface.c	Fri Nov 16 05:31:39 2007 +0000
@@ -300,7 +300,9 @@
 		return errbuf;
 	}
 	else
-		return g_strerror( errornum );
+		/* Nothing is supposed to modify what is returned by strerror,
+		   but it isn't const for some reason */
+		return (char *)g_strerror( errornum );
 }
 
 /* unistd.h */