changeset 12408:3d297efa70bb

[gaim-migrate @ 14715] One less format string non-literal warning to deal with if we check that from time to time (which is probably a good idea). Make a couple functions static. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 08 Dec 2005 20:59:07 +0000
parents b33b4e326c90
children d51cf8896f5c
files src/protocols/novell/novell.c
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/novell/novell.c	Thu Dec 08 20:58:52 2005 +0000
+++ b/src/protocols/novell/novell.c	Thu Dec 08 20:59:07 2005 +0000
@@ -1030,7 +1030,6 @@
 
 	const char *sysname = "";
 	const char *release = "";
-	const char *template = "Gaim/%s (%s; %s)";
 	struct utsname u;
 
 	if (uname(&u) == 0) {
@@ -1041,12 +1040,11 @@
 		release = "Unknown";
 	}
 
-	return g_strdup_printf(template, VERSION, sysname, release);
+	return g_strdup_printf("Gaim/%s (%s; %s)", VERSION, sysname, release);
 
 #else
 
 	const char *sysname = "";
-	const char *template = "Gaim/%s (%s; %d.%d)";
 	OSVERSIONINFO os_info;
 	SYSTEM_INFO sys_info;
 
@@ -1100,7 +1098,7 @@
 		sysname = "Windows";
 	}
 
-	return g_strdup_printf(template, VERSION, sysname,
+	return g_strdup_printf("Gaim/%s (%s; %d.%d)", VERSION, sysname,
 						   os_info.dwMajorVersion, os_info.dwMinorVersion);
 
 #endif
@@ -1648,7 +1646,7 @@
 	return name;
 }
 
-void
+static void
 _show_privacy_locked_error(GaimConnection *gc, NMUser *user)
 {
 	char *err;
@@ -2392,7 +2390,7 @@
 	serv_got_chat_left(gc, id);
 }
 
-void
+static void
 novell_chat_invite(GaimConnection *gc, int id,
 				   const char *message, const char *who)
 {