mirror of
https://github.com/znc/znc.git
synced 2026-07-03 08:21:57 +02:00
Mark GenerateHelp() and die() in main.cpp as static
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@933 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -23,7 +23,7 @@ static struct option g_LongOpts[] = {
|
||||
{ 0, 0, 0, 0 }
|
||||
};
|
||||
|
||||
void GenerateHelp(const char *appname) {
|
||||
static void GenerateHelp(const char *appname) {
|
||||
CUtils::PrintMessage("USAGE: " + CString(appname) + " [options] [config]");
|
||||
CUtils::PrintMessage("Options are:");
|
||||
CUtils::PrintMessage("\t-h, --help List available command line options (this page)");
|
||||
@@ -38,7 +38,7 @@ void GenerateHelp(const char *appname) {
|
||||
CUtils::PrintMessage("\t-d, --datadir Set a different znc repository (default is ~/.znc)");
|
||||
}
|
||||
|
||||
void die(int sig) {
|
||||
static void die(int sig) {
|
||||
signal(SIGSEGV, SIG_DFL);
|
||||
signal(SIGABRT, SIG_DFL);
|
||||
signal(SIGPIPE, SIG_DFL);
|
||||
|
||||
Reference in New Issue
Block a user