]> jfr.im git - irc/quakenet/newserv.git/commitdiff
More safe warning fixes.
authorChris Porter <redacted>
Fri, 8 Feb 2008 18:44:11 +0000 (18:44 +0000)
committerChris Porter <redacted>
Fri, 8 Feb 2008 18:44:11 +0000 (18:44 +0000)
chanprofile/chanprofile.c
lib/patricia.c
newsearch/newsearch.c
newsearch/newsearch.h

index 0907f744fa38e590110d9dbc8f2f21321be471fd..aec6f7752d1a434819d147b0f4c6a08f6c85c716 100644 (file)
@@ -97,7 +97,7 @@ void clearprofiles() {
 }
 
 int cpcompare(const void *a, const void *b) {
-  const struct chanprofile **cpa=a, **cpb=b;
+  const struct chanprofile **cpa=(const struct chanprofile **)a, **cpb=(const struct chanprofile **)b;
   
   return (*cpb)->clones - (*cpa)->clones;
 }
index 972b45f623780934af5cd8d347e3ca674bafa849..e2f909393682554b537bb7badf3e143bebd42731 100644 (file)
@@ -12,7 +12,7 @@
  * "demo.c" so that it could be used as a standalone API.
  */
 
-static char copyright[] =
+char patricia_copyright[] =
 "This product includes software developed by the University of Michigan, Merit"
 "Network, Inc., and their contributors.";
 
index 226379ef17c1dd7ec82f67aa75e51d5095ce9ee4..e703ac3a53736afa1f5164859ec902284fb171d7 100644 (file)
@@ -19,7 +19,6 @@ int do_nicksearch(void *source, int cargc, char **cargv);
 int do_chansearch(void *source, int cargc, char **cargv);
 struct searchNode *search_parse(int type, char *input);
 
-void printnick(nick *, nick *);
 void printnick_channels(nick *, nick *);
 void printchannel(nick *, chanindex *);
 void printchannel_topic(nick *, chanindex *);
index 5d001249d5926fe4ea3d5d72295c1e6c1ab4160f..cd66ffd79cb2efb0c2bdd8be6aeee5fb2e40c68a 100644 (file)
@@ -110,3 +110,6 @@ typedef struct searchNode {
 } searchNode;
 
 extern const char *parseError;
+
+void printnick(nick *, nick *);
+