diff options
author | Bjarke Istrup Pedersen <gurligebis@gentoo.org> | 2007-02-26 12:35:49 +0000 |
---|---|---|
committer | Bjarke Istrup Pedersen <gurligebis@gentoo.org> | 2007-02-26 12:35:49 +0000 |
commit | c03eaddf6b9dd734dad00a81b9b9fce5f48a8d0a (patch) | |
tree | a1f9b4ba798c0659911c8b4f34c9904fef987fbb /net-irc/psybnc | |
parent | Add icons (diff) | |
download | gentoo-2-c03eaddf6b9dd734dad00a81b9b9fce5f48a8d0a.tar.gz gentoo-2-c03eaddf6b9dd734dad00a81b9b9fce5f48a8d0a.tar.bz2 gentoo-2-c03eaddf6b9dd734dad00a81b9b9fce5f48a8d0a.zip |
Fixes several compiler warnings, output should be much cleaner.
(Portage version: 2.1.2-r11)
Diffstat (limited to 'net-irc/psybnc')
-rw-r--r-- | net-irc/psybnc/ChangeLog | 7 | ||||
-rw-r--r-- | net-irc/psybnc/files/compile.diff | 79 | ||||
-rw-r--r-- | net-irc/psybnc/psybnc-2.3.2.7-r2.ebuild | 4 |
3 files changed, 88 insertions, 2 deletions
diff --git a/net-irc/psybnc/ChangeLog b/net-irc/psybnc/ChangeLog index 4956c93e0ab7..48eab9a21fd1 100644 --- a/net-irc/psybnc/ChangeLog +++ b/net-irc/psybnc/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-irc/psybnc # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-irc/psybnc/ChangeLog,v 1.5 2007/02/26 00:03:08 gurligebis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-irc/psybnc/ChangeLog,v 1.6 2007/02/26 12:35:49 gurligebis Exp $ + + 26 Feb 2007; Bjarke Istrup Pedersen <gurligebis@gentoo.org>: + Fixes several compiler warnings, output should be much cleaner. + +*psybnc-2.3.2.7-r2 (26 Feb 2007) 26 Feb 2007; Bjarke Istrup Pedersen <gurligebis@gentoo.org>: Moved away from /opt, fixing bug #154164 . diff --git a/net-irc/psybnc/files/compile.diff b/net-irc/psybnc/files/compile.diff new file mode 100644 index 000000000000..830fb3438ec5 --- /dev/null +++ b/net-irc/psybnc/files/compile.diff @@ -0,0 +1,79 @@ +diff -Naurp src/p_blowfish.c src/p_blowfish.c +--- src/p_blowfish.c 2007-02-26 12:16:53.000000000 +0000 ++++ src/p_blowfish.c 2007-02-26 12:17:11.000000000 +0000 +@@ -31,7 +31,7 @@ static char rcsid[] = "@(#)$Id: p_blowfi + #include <string.h> + #include <config.h> + +-char *strmncpy(char *dest, char *source, size_t len); ++char *strmncpy(char *dest, const char *source, size_t len); + char *lngtxt(int msgnum); + + #define pcontext { strmncpy(ctxt,__FILE__,sizeof(ctxt));strmncpy(cfunc,__FUNCTION__,sizeof(cfunc)); cline=__LINE__; } +diff -Naurp src/p_global.h src/p_global.h +--- src/p_global.h 2007-02-26 12:16:53.000000000 +0000 ++++ src/p_global.h 2007-02-26 12:17:11.000000000 +0000 +@@ -972,8 +972,8 @@ int checklogging(int usern); + #endif + + #ifndef P_MEMORY +-unsigned long *__pmalloc(unsigned long size,char *module,char *function,int line); +-void _pfree(void * pointer,char *module, char *function, int line); ++unsigned long *__pmalloc(unsigned long size,const char *module,const char *function,int line); ++void _pfree(void * pointer,char *module, const char *function, int line); + struct usert *user(int usern); + struct newpeert *newpeer(int usern); + struct datalinkt *datalink(int usern); +@@ -1092,7 +1092,7 @@ int replace(char *rps, char whatc, char + char *nobreak(char *tobreak); + char *randstring(int length); + char *strmcat(char *first,char *second); +-char *strmncpy(char *dest, char *source, unsigned int len); ++char *strmncpy(char *dest, const char *source, unsigned int len); + int strmncasecmp(char *one, char *two); + int strmcmp(char *one, char *two); + int strmwildcmp(char *line, char *wildcard); +diff -Naurp src/p_memory.c src/p_memory.c +--- src/p_memory.c 2007-02-26 12:16:53.000000000 +0000 ++++ src/p_memory.c 2007-02-26 12:17:11.000000000 +0000 +@@ -32,7 +32,7 @@ FILE *logm=NULL; + + /* malloc-wrapper. No memory will log an error entry and kill the bouncer */ + +-unsigned long *__pmalloc(unsigned long size,char *module,char *function, int line) ++unsigned long *__pmalloc(unsigned long size,const char *module,const char *function, int line) + { + unsigned long *rc; + if (!(rc=(unsigned long *)malloc(size))) +@@ -53,7 +53,7 @@ unsigned long *__pmalloc(unsigned long s + return rc; + } + +-void _pfree(unsigned long *pointer, char *module, char *function, int line) ++void _pfree(unsigned long *pointer, char *module, const char *function, int line) + { + #ifdef LOGALLOC + if(logm==NULL) +diff -Naurp src/p_string.c src/p_string.c +--- src/p_string.c 2007-02-26 12:16:53.000000000 +0000 ++++ src/p_string.c 2007-02-26 12:17:11.000000000 +0000 +@@ -51,7 +51,7 @@ char *lngtxt(unsigned int msgnum) + + /* string copy with len and zero delimit */ + +-char *strmncpy(char *dest, char *source, unsigned int len) ++char *strmncpy(char *dest, const char *source, unsigned int len) + { + char bf[strlen(source)+2]; + char *pt; +diff -Naurp src/match.c src/match.c +--- src/match.c 2007-02-26 12:26:10.000000000 +0000 ++++ src/match.c 2007-02-26 12:26:17.000000000 +0000 +@@ -36,6 +36,7 @@ + /* Remove the next line to use this in IrcII */ + #define EGGDROP + ++#include <p_global.h> + + /* =================================================================== + * Best to leave stuff after this point alone, but go on and change diff --git a/net-irc/psybnc/psybnc-2.3.2.7-r2.ebuild b/net-irc/psybnc/psybnc-2.3.2.7-r2.ebuild index c107c25e729e..17cffb47bc68 100644 --- a/net-irc/psybnc/psybnc-2.3.2.7-r2.ebuild +++ b/net-irc/psybnc/psybnc-2.3.2.7-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-irc/psybnc/psybnc-2.3.2.7-r2.ebuild,v 1.1 2007/02/26 00:03:08 gurligebis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-irc/psybnc/psybnc-2.3.2.7-r2.ebuild,v 1.2 2007/02/26 12:35:49 gurligebis Exp $ inherit eutils versionator toolchain-funcs MY_PV="$(replace_version_separator 3 -)" @@ -28,6 +28,8 @@ src_unpack() { unpack ${A} cd ${S} + epatch ${FILESDIR}/compile.diff + # Useless files rm -f */INFO |