[cvslog] (2004-04-10 03:52:38 UTC) Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Fri Apr 9 21:52:38 CST 2004


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2004-04-10 03:52:38 UTC
Commited by: stdarg <stdarg at techmonkeys.org>

Modified files:
     src/net.c src/tcl.c src/tclmisc.c src/md5/md5c.c

Log message:

* Fixed some compile warnings

---------------------- diff included ----------------------
Index: eggdrop1.6/src/md5/md5c.c
diff -u eggdrop1.6/src/md5/md5c.c:1.12 eggdrop1.6/src/md5/md5c.c:1.13
--- eggdrop1.6/src/md5/md5c.c:1.12	Wed Mar  5 23:19:50 2003
+++ eggdrop1.6/src/md5/md5c.c	Fri Apr  9 22:52:28 2004
@@ -206,7 +206,7 @@
 		}
 
 		egg_memcpy(&ctx->buffer[used], data, free);
-		(unsigned char *)data += free;
+		data += free;
 		size -= free;
 		body(ctx, ctx->buffer, 64);
 	}
Index: eggdrop1.6/src/net.c
diff -u eggdrop1.6/src/net.c:1.64 eggdrop1.6/src/net.c:1.65
--- eggdrop1.6/src/net.c:1.64	Tue Jan 13 04:04:45 2004
+++ eggdrop1.6/src/net.c	Fri Apr  9 22:52:28 2004
@@ -2,7 +2,7 @@
  * net.c -- handles:
  *   all raw network i/o
  *
- * $Id: net.c,v 1.64 2004/01/13 10:04:45 wcc Exp $
+ * $Id: net.c,v 1.65 2004/04/10 03:52:28 stdarg Exp $
  */
 /*
  * This is hereby released into the public domain.
@@ -443,7 +443,7 @@
 int open_address_listen(IP addr, int *port)
  {
   int sock = 0;
-  unsigned int addrlen;
+  socklen_t addrlen;
   struct sockaddr_in name;
 
   if (firewall[0]) {
@@ -536,7 +536,7 @@
            int binary)
 {
   int new_sock;
-  unsigned int addrlen;
+  socklen_t addrlen;
   struct sockaddr_in from;
 
   addrlen = sizeof(struct sockaddr);
@@ -670,6 +670,8 @@
                                   * otherwise it will connect. */
             *len = socklist[i].sock;
             socklist[i].flags &= ~SOCK_CONNECT;
+	    putlog(LOG_MISC, "*", "socklist[i].inbuflen = %d", socklist[i].inbuflen);
+	    if (socklist[i].inbuf) putlog(LOG_MISC, "*", "inbuf = '%s'", socklist[i].inbuf);
             debug1("net: eof!(read) socket %d", socklist[i].sock);
             return -1;
           } else {
Index: eggdrop1.6/src/tcl.c
diff -u eggdrop1.6/src/tcl.c:1.75 eggdrop1.6/src/tcl.c:1.76
--- eggdrop1.6/src/tcl.c:1.75	Thu Jan  8 23:56:37 2004
+++ eggdrop1.6/src/tcl.c	Fri Apr  9 22:52:28 2004
@@ -4,7 +4,7 @@
  *   Tcl initialization
  *   getting and setting Tcl/eggdrop variables
  *
- * $Id: tcl.c,v 1.75 2004/01/09 05:56:37 wcc Exp $
+ * $Id: tcl.c,v 1.76 2004/04/10 03:52:28 stdarg Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -374,7 +374,7 @@
   while (table->name) {
     cdata = (void **) nmalloc(sizeof(void *) * 2);
     clientdata_stuff += sizeof(void *) * 2;
-    cdata[0] = table->func;
+    cdata[0] = (void *)table->func;
     cdata[1] = NULL;
     Tcl_CreateObjCommand(interp, table->name, utf_converter, (ClientData) cdata,
                          cmd_delete_callback);
@@ -389,7 +389,7 @@
   while (table->name) {
     cdata = (void **) nmalloc(sizeof(void *) * 2);
     clientdata_stuff += sizeof(void *) * 2;
-    cdata[0] = table->callback;
+    cdata[0] = (void *)table->callback;
     cdata[1] = table->cdata;
     Tcl_CreateObjCommand(interp, table->name, utf_converter, (ClientData) cdata,
                          cmd_delete_callback);
Index: eggdrop1.6/src/tclmisc.c
diff -u eggdrop1.6/src/tclmisc.c:1.48 eggdrop1.6/src/tclmisc.c:1.49
--- eggdrop1.6/src/tclmisc.c:1.48	Tue Apr  6 01:56:38 2004
+++ eggdrop1.6/src/tclmisc.c	Fri Apr  9 22:52:28 2004
@@ -2,7 +2,7 @@
  * tclmisc.c -- handles:
  *   Tcl stubs for everything else
  *
- * $Id: tclmisc.c,v 1.48 2004/04/06 06:56:38 wcc Exp $
+ * $Id: tclmisc.c,v 1.49 2004/04/10 03:52:28 stdarg Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -642,7 +642,7 @@
     return TCL_ERROR;
   }
 #  ifdef USE_TCL_BYTE_ARRAYS
-  string = Tcl_GetByteArrayFromObj(objv[1], &len);
+  string = (unsigned char *)Tcl_GetByteArrayFromObj(objv[1], &len);
 #  else
   string = Tcl_GetStringFromObj(objv[1], &len);
 #  endif /* USE_TCL_BYTE_ARRAYS */
----------------------- End of diff -----------------------



More information about the Changes mailing list