From 519977112e83b1265bd277a5f3835671ab26921a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ralf=20Cors=C3=A9pius?= Date: Sat, 27 Oct 2007 06:19:26 +0200 Subject: [PATCH] Stop messing around with triple-arg'ed main. --- rpmqv.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/rpmqv.c b/rpmqv.c index f10f706..d401fed 100644 --- a/rpmqv.c +++ b/rpmqv.c @@ -152,13 +152,7 @@ static void printUsage(poptContext con, FILE * fp, int flags) poptPrintUsage(con, fp, flags); } -/* LCL: segfault */ -/* FIX: shrug */ -#if !defined(__GLIBC__) -int main(int argc, char *argv[], char ** envp) -#else int main(int argc, char *argv[]) -#endif { rpmts ts = NULL; enum modes bigMode = MODE_UNKNOWN; @@ -204,10 +198,6 @@ int main(int argc, char *argv[]) #endif setprogname(argv[0]); /* Retrofit glibc __progname */ -#if !defined(__GLIBC__) - environ = envp; -#endif - /* XXX glibc churn sanity */ if (__progname == NULL) { if ((__progname = strrchr(argv[0], '/')) != NULL) __progname++; -- 2.7.4