"cmd/smyrna/gui/topviewsettings.c",
"cmd/smyrna/gui/topviewsettings.h",
"cmd/smyrna/gvprpipe.c",
- "cmd/smyrna/gvprpipe.h",
"cmd/smyrna/hier.c",
"cmd/smyrna/hier.h",
"cmd/smyrna/hotkeymap.c",
GtkTextIter startit;
GtkTextIter endit;
const char *args;
- int j, argc, cloneGraph;
+ int cloneGraph;
char **argv;
args =
return;
}
- argc = 1;
+ size_t argc = 1;
if (*args != '\0')
argc += 2;
if (*bf2 != '\0')
} else
cloneGraph = 0;
argv = gv_calloc(argc + 1, sizeof(char*));
- j = 0;
+ size_t j = 0;
argv[j++] = "smyrna";
if (cloneGraph)
argv[j++] = "-C";
#include "smyrnadefs.h"
#include "gvprpipe.h"
#include <common/const.h>
+#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
return (ssize_t)nbyte;
}
-int run_gvpr(Agraph_t * srcGraph, int argc, char *argv[])
-{
+int run_gvpr(Agraph_t * srcGraph, size_t argc, char *argv[]) {
int i, rv = 1;
gvpropts opts;
Agraph_t *gs[2];
opts.err = outfn;
opts.flags = GV_USE_OUTGRAPH;
- rv = gvpr(argc, argv, &opts);
+ assert(argc <= INT_MAX);
+ rv = gvpr((int)argc, argv, &opts);
if (rv) { /* error */
fprintf(stderr, "Error in gvpr\n");
/*************************************************************************
- * Copyright (c) 2011 AT&T Intellectual Property
+ * Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
#include <cgraph/cgraph.h>
- extern int run_gvpr(Agraph_t * srcGraph, int argc, char *argv[]);
+extern int run_gvpr(Agraph_t *srcGraph, size_t argc, char *argv[]);