Changeset 0fbda193 for unix.c


Ignore:
Timestamp:
2008-02-02T21:48:09Z (16 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
979cfb4
Parents:
f774e01
Message:

Added help_free() and cleaned up some very stale help-related stuff I
wasn't even aware of. This closes bug #352.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • unix.c

    rf774e01 r0fbda193  
    124124        if( !getuid() || !geteuid() )
    125125                log_message( LOGLVL_WARNING, "BitlBee is running with root privileges. Why?" );
    126         if( help_init( &(global.help), global.helpfile ) == NULL )
     126        if( help_init( &global.help, global.helpfile ) == NULL )
    127127                log_message( LOGLVL_WARNING, "Error opening helpfile %s.", HELP_FILE );
    128128       
    129129        b_main_run();
     130       
     131        /* Mainly good for restarting, to make sure we close the help.txt fd. */
     132        help_free( &global.help );
    130133       
    131134        if( global.restart )
Note: See TracChangeset for help on using the changeset viewer.