Log message:
Cleaned up a couple of compiler warnings, fixed Makefile.in so it works
for compiling outside the source tree
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@713
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+2002-04-03 Alex Badea <vampire@p16.pub.ro>
+
+ * include/channel.h: fix compiler warnings (paratheses around &&)
+
+ * ircd/channel.c (modebuf_extract): fix compiler warnings
+ (uninitialized variables)
+
+ * ircd/Makefile.in: make ircd properly compile outside the
+ source tree
+
2002-04-03 Alex Badea <vampire@p16.pub.ro>
* include/s_user.h: added a sptr parameter to InfoFormatter
#define HiddenChannel(x) ((x) && ((x)->mode.mode & MODE_PRIVATE))
/* channel visible */
#define ShowChannel(v,c) (PubChannel(c) || find_channel_member((v),(c)) || \
- (IsAnOper(v)) && HasPriv(v, PRIV_LIST_CHAN))
+ (IsAnOper(v) && HasPriv(v, PRIV_LIST_CHAN)))
#define PubChannel(x) ((!x) || ((x)->mode.mode & \
(MODE_PRIVATE | MODE_SECRET)) == 0)
#define is_listed(x) ((x)->mode.mode & MODE_LISTED)
${SHELL} ${srcdir}/version.c.SH
../include/patchlist.h:
- (cd .. ; ./ircd-patch update)
+ (cd ${top_srcdir} ; ./ircd-patch update)
ircd_string.o: ircd_string.c chattr.tab.c
./table_gen > chattr.tab.c
lex.yy.c: ircd_lexer.l y.tab.h
- ${LEX} ircd_lexer.l
+ ${LEX} ${srcdir}/ircd_lexer.l
y.tab.c y.tab.h: ircd_parser.y
- ${YACC} -d ircd_parser.y
+ ${YACC} -d ${srcdir}/ircd_parser.y
mkbindir:
@test -d ${BINDIR} || mkdir ${BINDIR}
int i, bufpos = 0, len;
int *flag_p;
char *key = 0, limitbuf[20];
- char *apass, *upass;
+ char *apass = 0, *upass = 0;
assert(0 != mbuf);
assert(0 != buf);