Change main() to using char *argv[].

This commit is contained in:
Ralf Corsépius 2007-09-18 05:53:37 +02:00
parent f2a250702a
commit 90688278db
23 changed files with 24 additions and 24 deletions

View File

@ -171,7 +171,7 @@ exit:
return rc; return rc;
} }
int main (int argc, const char * argv[]) int main (int argc, char *argv[])
{ {
int rc; int rc;

View File

@ -83,7 +83,7 @@ static struct poptOption optionsTable[] = {
}; };
int int
main(int argc, char *const argv[]) main(int argc, char *argv[])
{ {
poptContext optCon; poptContext optCon;
rpmts ts = NULL; rpmts ts = NULL;

View File

@ -109,7 +109,7 @@ exit:
return rc; return rc;
} }
int main (int argc, const char * argv[]) int main (int argc, char *argv[])
{ {
int rc; int rc;

View File

@ -18,7 +18,7 @@ static struct poptOption optionsTable[] = {
}; };
int int
main(int argc, const char *argv[]) main(int argc, char *argv[])
{ {
poptContext optCon; poptContext optCon;
struct rpmInstallArguments_s * ia = &rpmIArgs; struct rpmInstallArguments_s * ia = &rpmIArgs;

View File

@ -10,7 +10,7 @@ const char *__progname;
#include "debug.h" #include "debug.h"
int main(int argc, char **argv) int main(int argc, char *argv[])
{ {
FD_t fdi, fdo; FD_t fdi, fdo;
Header h; Header h;

View File

@ -7,7 +7,7 @@
#define RPMDBFN "/var/lib/rpm/packages.rpm" #define RPMDBFN "/var/lib/rpm/packages.rpm"
static const char * rpmdbfn = RPMDBFN; static const char * rpmdbfn = RPMDBFN;
int main(int argc, const char ** argv) int main(int argc, char *argv[])
{ {
int lasto = 0; int lasto = 0;
FD_t fd; FD_t fd;

View File

@ -42,7 +42,7 @@ fprintf(stderr, "%s: DONE scp %p [%d:%d] av %p avlen %p nr %d nc %d\n", __FUNCTI
static const char *dbname = "/var/lib/rpm/Packages"; static const char *dbname = "/var/lib/rpm/Packages";
static const char *qcmd = "SELECT key from 'Packages';"; static const char *qcmd = "SELECT key from 'Packages';";
int main(int argc, char **argv) int main(int argc, char *argv[])
{ {
sqlite3 *db; sqlite3 *db;
int rc; int rc;

View File

@ -49,7 +49,7 @@ static struct poptOption optionsTable[] = {
}; };
int int
main(int argc, const char *argv[]) main(int argc, char *argv[])
{ {
poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0); poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0);
int rc; int rc;

View File

@ -141,7 +141,7 @@ static struct poptOption optionsTable[] = {
}; };
int int
main(int argc, const char *argv[]) main(int argc, char *argv[])
{ {
poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0); poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0);
int rc; int rc;

View File

@ -46,7 +46,7 @@ static struct poptOption optionsTable[] = {
}; };
int int
main(int argc, const char *argv[]) main(int argc, char *argv[])
{ {
poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0); poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0);
int rc; int rc;

View File

@ -60,7 +60,7 @@ static struct poptOption optionsTable[] = {
}; };
int int
main(int argc, const char *argv[]) main(int argc, char *argv[])
{ {
poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0); poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0);
int rc; int rc;

View File

@ -99,7 +99,7 @@ static struct poptOption optionsTable[] = {
}; };
int int
main(int argc, const char *argv[]) main(int argc, char *argv[])
{ {
poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0); poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0);
int rc; int rc;

View File

@ -459,7 +459,7 @@ static struct poptOption optionsTable[] = {
}; };
int int
main(int argc, const char * argv[]) main(int argc, char *argv[])
{ {
poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0); poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0);
mpbarrett q; mpbarrett q;

View File

@ -106,7 +106,7 @@ static struct poptOption optionsTable[] = {
}; };
int int
main(int argc, const char *argv[]) main(int argc, char *argv[])
{ {
poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0); poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0);
int rc; int rc;

View File

@ -155,9 +155,9 @@ static void printUsage(poptContext con, FILE * fp, int flags)
/* LCL: segfault */ /* LCL: segfault */
/* FIX: shrug */ /* FIX: shrug */
#if !defined(__GLIBC__) #if !defined(__GLIBC__)
int main(int argc, const char ** argv, char ** envp) int main(int argc, char *argv[], char ** envp)
#else #else
int main(int argc, const char ** argv) int main(int argc, char *argv[])
#endif #endif
{ {
rpmts ts = NULL; rpmts ts = NULL;

View File

@ -116,7 +116,7 @@ static int fadFirstOffset(FD_t fd)
static rpmdb db; static rpmdb db;
int int
main(int argc, char ** argv) main(int argc, char *argv[])
{ {
FD_t fd; FD_t fd;
int offset; int offset;

View File

@ -5,7 +5,7 @@ const char *__progname;
#include "header_internal.h" #include "header_internal.h"
#include "debug.h" #include "debug.h"
int main(int argc, char ** argv) int main(int argc, char *argv[])
{ {
Header h; Header h;
FD_t fdi; FD_t fdi;

View File

@ -8,7 +8,7 @@ const char *__progname;
#include "debug.h" #include "debug.h"
int main(int argc, char ** argv) int main(int argc, char *argv[])
{ {
unsigned int dspBlockNum = 0; /* default to all */ unsigned int dspBlockNum = 0; /* default to all */
rpmdb db; rpmdb db;

View File

@ -1187,7 +1187,7 @@ void processJavaFile (FILE *fileHandle) {
int int
main(int argc, char **argv) main(int argc, char *argv[])
{ {
FILE *fileHandle; FILE *fileHandle;
int i = 0; int i = 0;

View File

@ -530,7 +530,7 @@ static struct poptOption optionsTable[] = {
}; };
int int
main(int argc, char *const argv[]) main(int argc, char *argv[])
{ {
rpmts ts = NULL; rpmts ts = NULL;
poptContext optCon; poptContext optCon;

View File

@ -43,7 +43,7 @@ static struct poptOption optionsTable[] = {
}; };
int int
main(int argc, char *const argv[]) main(int argc, char *argv[])
{ {
poptContext optCon; poptContext optCon;
ARGV_t av = NULL; ARGV_t av = NULL;

View File

@ -277,7 +277,7 @@ static struct poptOption optionsTable[] = {
}; };
int int
main(int argc, char *const argv[]) main(int argc, char *argv[])
{ {
rpmts ts = NULL; rpmts ts = NULL;
struct rpmInstallArguments_s * ia = &rpmIArgs; struct rpmInstallArguments_s * ia = &rpmIArgs;

View File

@ -275,7 +275,7 @@ static struct poptOption optionsTable[] = {
}; };
int int
main(int argc, const char *argv[]) main(int argc, char *argv[])
{ {
poptContext optCon; poptContext optCon;
const char * optArg; const char * optArg;