diff src/protocols/zephyr/et_name.c @ 12424:7c2e2c4d45a4

[gaim-migrate @ 14731] Add prototypes, make things static, or #if 0 out unused function as necessary to get zephyr to compile without prototype warnings. It's painfully obvious that this code was written before prototypes existed, or at least before they became standard. As we need to maintain source compatibility with an external libzephyr, I can't really start adding header files. If someone cares about this protocol, feel free to clean this up a bit. My only concern is that I caught any actual mistakes and that it compiles without spurious warnings that would distract us from problems elsewhere. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 08 Dec 2005 23:38:36 +0000
parents 64895571248f
children
line wrap: on
line diff
--- a/src/protocols/zephyr/et_name.c	Thu Dec 08 23:36:47 2005 +0000
+++ b/src/protocols/zephyr/et_name.c	Thu Dec 08 23:38:36 2005 +0000
@@ -14,9 +14,11 @@
 static const char char_set[] =
 	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
 
-const char * error_table_name_r(num, buf)
-    int num;
-    char *buf;
+/* Prototypes for -Wmissing-prototypes */
+const char * error_table_name(int num);
+const char * error_table_name_r(int num, char *buf);
+
+const char * error_table_name_r(int num, char *buf)
 {
     int ch;
     int i;
@@ -37,8 +39,7 @@
     return(buf);
 }
 
-const char * error_table_name(num)
-    int num;
+const char * error_table_name(int num)
 {
     static char buf[6];