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;
}
int main (int argc, const char * argv[])
int main (int argc, char *argv[])
{
int rc;

View File

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

View File

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

View File

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

View File

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

View File

@ -7,7 +7,7 @@
#define RPMDBFN "/var/lib/rpm/packages.rpm"
static const char * rpmdbfn = RPMDBFN;
int main(int argc, const char ** argv)
int main(int argc, char *argv[])
{
int lasto = 0;
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 *qcmd = "SELECT key from 'Packages';";
int main(int argc, char **argv)
int main(int argc, char *argv[])
{
sqlite3 *db;
int rc;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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