[IRCServices Coding] Alpha compile error

Josh grenday288 at geocities.com
Thu Dec 13 20:36:09 PST 2001


On 13 Dec 2001, at 18:04, Ben Goldstein wrote:

change like 487 in set.c to
  j = (ngi->timezone*60 - u->ngi->timezone);
Im pretty sure thats not what its suppose to be but its only for 
timestamp stuff and still compiles (didnt try running it yet).

> gcc -DCLEAN_COMPILE -O2 -Wall -Wmissing-prototypes -g -I../.. -c set.c -o
> set.o
> set.c: In function `do_set_timezone':
> set.c:487: wrong type argument to unary minus
> set.c:447: warning: `j' might be used uninitialized in this function
> 
> 487:        j = ngi->timezone*60 - (-timezone);
> 
> I'm not sure what this is even doing, I havn't dug into the code.  But it
> doesn't seem that "timezone" alone is the correct var you meant to use here.
> 
> -- Ben Goldstein (beng at nc.rr.com)
> 
> bash-2.05$ uname -a
> FreeBSD raider 4.4-20010827-RC2 FreeBSD 4.4-20010827-RC2 #4: Fri Nov 16
> 14:57:04 EST 2001     root at raider:/usr/obj/usr/src/sys/BG1  i386
> bash-2.05$ gmake -ver
> GNU Make version 3.79, by Richard Stallman and Roland McGrath.
> Built for i386-unknown-freebsdelf4.4
> Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
>         Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
> 
> Report bugs to <bug-make at gnu.org>.
> 
> 
> ------------------------------------------------------------------
> To unsubscribe or change your subscription options, visit:
> http://www.ircservices.za.net/mailman/listinfo/ircservices-coding


-------------------------------------
-- Josh Kirkorian [aka Poison-X]
-- Administrator - irc.insiderz.net

C Code. C code run. Run, code, run... 
Segmentation fault (core dumped).. aww shit