Author: Isomer <isomer@coders.net>
authorPerry Lorier <isomer@undernet.org>
Sat, 15 Jul 2000 12:29:16 +0000 (12:29 +0000)
committerPerry Lorier <isomer@undernet.org>
Sat, 15 Jul 2000 12:29:16 +0000 (12:29 +0000)
Log message:

Fixed lots of compiletime warnings.  Thanks to CyberDude that gave me
a shell so I could test.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@269 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

13 files changed:
ChangeLog
TODO
ircd/fileio.c
ircd/ircd_reply.c
ircd/jupe.c
ircd/m_error.c
ircd/m_ping.c
ircd/map.c
ircd/random.c
ircd/s_debug.c
ircd/s_err.c
ircd/s_user.c
ircd/whowas.c

index ad17e0c6e43627e7996a08fa076fd401696023c4..f78ed10a88b3bcf90b7e04c4f4ab11c73209709f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,5 @@
+2000-07-15  Perry Lorier       <Isomer@coders.net>
+       * various: Fixed warnings after compiling on an alpha.
 2000-07-09  Perry Lorier       <Isomer@coders.net>
        * doc/ircd.8: Applied grammitical changes by Liandrin, applied
                      changes suggested by various other people.
 #
 # ChangeLog for ircu2.10.11
 #
-# $Id: ChangeLog,v 1.156 2000-07-15 01:31:23 isomer Exp $
+# $Id: ChangeLog,v 1.157 2000-07-15 12:29:15 isomer Exp $
 #
 # Insert new changes at beginning of the change list.
 #
diff --git a/TODO b/TODO
index 105739ccd6d34300c21e51bae262f6bc916c62fc..ba5f4a35ccd9d1767e3a48916acd52d6c7e6759e 100644 (file)
--- a/TODO
+++ b/TODO
@@ -13,6 +13,8 @@ High Priority:
 * something is leaking "a meg a minute" with heap debugging on
   with 1300+ clients
   (No idea)
+* add_Target in s_user.c turns pointers to ints
+  this doesn't make much sence on alpha where sizeof(void *) != sizeof(int)
 
 Medium Priority:
 * crule parser coredumps on invalid input
index 410110d3bbe2c6a0273a5e89bbec7cd7827500a7..e79936a15588a4e04663fa1348315106faaeebdb 100644 (file)
@@ -26,6 +26,7 @@
 #include <stdio.h>              /* BUFSIZ, EOF */
 #include <sys/stat.h>           /* struct stat */
 #include <unistd.h>             /* read, write, open, close */
+#include <string.h>
 
 #define FB_EOF  0x01
 #define FB_FAIL 0x02
index 57a97de236c6c790faa53d29d5f40bd7af4d49e2..9020eaa75abd01be3a2a304481bc198b67e26e30 100644 (file)
@@ -32,6 +32,7 @@
 #include "send.h"
 
 #include <assert.h>
+#include <string.h>
 
 int need_more_params(struct Client* cptr, const char* cmd)
 {
index 6fdcc643d043d0cff0341db2fc7293894717f2ea..c49b4faee2f87cfc1ecb543eb86fb97a6fe6c99d 100644 (file)
@@ -39,6 +39,7 @@
 #include "sys.h"    /* FALSE bleah */
 
 #include <assert.h>
+#include <string.h>
 
 static struct Jupe *GlobalJupeList = 0;
 
index 342a4cda513ef605b0d40e74dce92b00e11df661..7af17f44f18d80ce8538cf89143d016b078e23da 100644 (file)
 #include "send.h"
 
 #include <assert.h>
+#include <string.h>
 
 /*
  * ms_error - server message handler
index a267b6eb42626537b808e4963dc2fb2ae7245980..6453ac77e568e969cafdd9f48f914769d9a87e6c 100644 (file)
 #include "send.h"
 
 #include <assert.h>
+#include <string.h>
 
 /*
  * m_ping - generic message handler
index b4cfbf618f5849a99361e105c67d64ffcb1acef0..07b7c68ab748698e6f5691f3935a05ecdee961bf 100644 (file)
@@ -31,6 +31,7 @@
 #include "struct.h"
 
 #include <stdio.h> /* sprintf */
+#include <string.h>
 
 void dump_map(struct Client *cptr, struct Client *server, char *mask, int prompt_length)
 {
index 0e727c3d4e07a254eae2aeb1c60391a04362b646..0fab4deecf9c3394269be2a462516bb71480e3f2 100644 (file)
@@ -23,6 +23,7 @@
 #include <stdio.h>
 #include <sys/time.h>
 
+#include <string.h>
 
 char localkey[9] = RANDOM_SEED;
 
index 904f289d90ba4f3ffd0de3827b74845862a1de35..e695ed6deb7e75aac9a09f433fa95a59c418705a 100644 (file)
@@ -190,7 +190,7 @@ void debug_init(int use_tty)
 {
 #ifdef  DEBUGMODE
   if (debuglevel >= 0) {
-    printf("isatty = %d ttyname = %#x\n", isatty(2), (unsigned int)ttyname(2));
+    printf("isatty = %d ttyname = %s\n", isatty(2), ttyname(2));
     if (!use_tty) {
       int fd;
       /* 
index a57988b1ff9f003088be3a233e729ff652bb877a..050acd6ed82bf83c7b4bf0b1c81ca3eaa60ba75f 100644 (file)
@@ -23,6 +23,7 @@
 #include "sprintf_irc.h"
 
 #include <assert.h>
+#include <string.h>
 
 static Numeric replyTable[] = {
 /* 000 */
index cf85fb8898f44689fd0fbcad5b9d5f2fde4e3ef2..813cf0f93d35de7fdf86ea43e50268f95b44b0b5 100644 (file)
@@ -900,7 +900,9 @@ static unsigned char hash_target(unsigned int target)
  */
 void add_target(struct Client *sptr, void *target)
 {
-  unsigned char  hash = hash_target((unsigned int) target);
+  /* Ok, this shouldn't work esp on alpha
+  */
+  unsigned char  hash = hash_target((unsigned long) target);
   unsigned char* targets;
   int            i;
   assert(0 != sptr);
@@ -933,7 +935,7 @@ void add_target(struct Client *sptr, void *target)
 int check_target_limit(struct Client *sptr, void *target, const char *name,
     int created)
 {
-  unsigned char hash = hash_target((unsigned int) target);
+  unsigned char hash = hash_target((unsigned long) target);
   int            i;
   unsigned char* targets;
 
index c2caf4a9d4b53b8a0c6691c37836f3d60bcd3e05..9f9c19588b1bcc5bb5ef441bb8dd888860100739 100644 (file)
@@ -52,6 +52,7 @@
 
 #include <assert.h>
 #include <stdlib.h>
+#include <string.h>
 
 
 static struct Whowas  whowas[NICKNAMEHISTORYLENGTH];