X-Git-Url: https://git.saurik.com/apt-legacy.git/blobdiff_plain/854e5ff143d32f8d361bc3f979cc1290a752ebfd..1229adc915e6c6f70bd38a806b4c264f570f2065:/cmdline/apt-config.cc diff --git a/cmdline/apt-config.cc b/cmdline/apt-config.cc index faf1164..9919a9c 100644 --- a/cmdline/apt-config.cc +++ b/cmdline/apt-config.cc @@ -1,7 +1,3 @@ -extern "C" { - #include -} - // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ // $Id: apt-config.cc,v 1.11 2003/01/11 07:18:44 jgg Exp $ @@ -71,8 +67,8 @@ bool DoDump(CommandLine &CmdL) /* */ int ShowHelp() { - ioprintf(cout,_("%s %s for %s %s compiled on %s %s\n"),PACKAGE,VERSION, - COMMON_OS,COMMON_CPU,__DATE__,__TIME__); + ioprintf(cout,_("%s %s for %s compiled on %s %s\n"),PACKAGE,VERSION, + COMMON_ARCH,__DATE__,__TIME__); if (_config->FindB("version") == true) return 0; @@ -92,16 +88,8 @@ int ShowHelp() return 0; } /*}}}*/ - -int main(int argc,const char *argv[]) +int main(int argc,const char *argv[]) /*{{{*/ { - struct nlist nl[2]; - memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; - nlist("/usr/lib/libc.dylib", nl); - if (nl[0].n_type != N_UNDF) - *(int *) nl[0].n_value = 0; - CommandLine::Args Args[] = { {'h',"help","help",0}, {'v',"version","version",0}, @@ -114,7 +102,7 @@ int main(int argc,const char *argv[]) // Set up gettext support setlocale(LC_ALL,""); - //textdomain(PACKAGE); + textdomain(PACKAGE); // Parse the command line and initialize the package library CommandLine CmdL(Args,_config); @@ -144,3 +132,4 @@ int main(int argc,const char *argv[]) return 0; } + /*}}}*/