Change main() to using char *argv[].
This commit is contained in:
parent
f2a250702a
commit
90688278db
|
@ -171,7 +171,7 @@ exit:
|
|||
return rc;
|
||||
}
|
||||
|
||||
int main (int argc, const char * argv[])
|
||||
int main (int argc, char *argv[])
|
||||
{
|
||||
|
||||
int rc;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -109,7 +109,7 @@ exit:
|
|||
return rc;
|
||||
}
|
||||
|
||||
int main (int argc, const char * argv[])
|
||||
int main (int argc, char *argv[])
|
||||
{
|
||||
|
||||
int rc;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
4
rpmqv.c
4
rpmqv.c
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1187,7 +1187,7 @@ void processJavaFile (FILE *fileHandle) {
|
|||
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
FILE *fileHandle;
|
||||
int i = 0;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue