ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/src/ircd.c
(Generate patch)

Comparing ircd-hybrid/src/ircd.c (file contents):
Revision 48 by adx, Mon Oct 3 01:36:06 2005 UTC vs.
Revision 62 by adx, Mon Oct 3 22:23:39 2005 UTC

# Line 545 | Line 545 | main(int argc, char *argv[])
545    if (geteuid() == 0)
546    {
547      fprintf(stderr, "Don't run ircd as root!!!\n");
548 <    return(-1);
548 >    return 1;
549    }
550  
551    /* Setup corefile size immediately after boot -kre */
# Line 558 | Line 558 | main(int argc, char *argv[])
558    /* save server boot time right away, so getrusage works correctly */
559    set_time();
560  
561 <    /* It ain't random, but it ought to be a little harder to guess */
561 >  outofmemory = ircd_outofmemory;
562 >
563 >  /* It ain't random, but it ought to be a little harder to guess */
564    srand(SystemTime.tv_sec ^ (SystemTime.tv_usec | (getpid() << 20)));
565    memset(&me, 0, sizeof(me));
566    memset(&meLocalUser, 0, sizeof(meLocalUser));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines