diff libpurple/protocols/zephyr/zephyr.c @ 22007:c38d72677c8a

Probe for -Wstrict-prototypes to get some more warnings. I then cleaned up the existing warnings. I removed a handful of dead code and cleaned up a couple of things that I stumbled across.
author Richard Laager <rlaager@wiktel.com>
date Thu, 03 Jan 2008 04:57:40 +0000
parents 3cc856ca2338
children d60aa8fdad55
line wrap: on
line diff
--- a/libpurple/protocols/zephyr/zephyr.c	Wed Jan 02 22:15:06 2008 +0000
+++ b/libpurple/protocols/zephyr/zephyr.c	Thu Jan 03 04:57:40 2008 +0000
@@ -53,7 +53,7 @@
 
 extern Code_t ZGetLocations(ZLocations_t *, int *);
 extern Code_t ZSetLocation(char *);
-extern Code_t ZUnsetLocation();
+extern Code_t ZUnsetLocation(void);
 extern Code_t ZGetSubscriptions(ZSubscription_t *, int*);
 extern char __Zephyr_realm[];
 typedef struct _zframe zframe;
@@ -1386,7 +1386,7 @@
 
 #endif /* WIN32 */
 
-static char *get_exposure_level()
+static char *get_exposure_level(void)
 {
 	/* XXX add real error reporting */
 	char *exposure = ZGetVariable("exposure");
@@ -2058,7 +2058,7 @@
 static int zephyr_send_message(zephyr_account *zephyr,char* zclass, char* instance, char* recipient, const char *im, 
 			       const char *sig, char *opcode) ;
 
-static const char * zephyr_get_signature()
+static const char * zephyr_get_signature(void)
 {
 	/* XXX add zephyr error reporting */
 	const char * sig =ZGetVariable("zwrite-signature");
@@ -2676,7 +2676,7 @@
 		return PURPLE_CMD_RET_FAILED;
 }
 
-static void zephyr_register_slash_commands()
+static void zephyr_register_slash_commands(void)
 {
 
 	purple_cmd_register("msg","ws", PURPLE_CMD_P_PRPL,