Use unsigned where appropriate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22885 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -106,7 +106,7 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
char *path;
|
char *path;
|
||||||
char **args;
|
char **args;
|
||||||
int i;
|
unsigned int i;
|
||||||
int optind = 0;
|
int optind = 0;
|
||||||
|
|
||||||
setprogname(argv[0]);
|
setprogname(argv[0]);
|
||||||
@@ -224,7 +224,7 @@ main(int argc, char **argv)
|
|||||||
execvp(path, args);
|
execvp(path, args);
|
||||||
if (errno == ENOENT || c_flag) {
|
if (errno == ENOENT || c_flag) {
|
||||||
char **sh_args = malloc ((i + 2) * sizeof(char *));
|
char **sh_args = malloc ((i + 2) * sizeof(char *));
|
||||||
int j;
|
unsigned int j;
|
||||||
|
|
||||||
if (sh_args == NULL)
|
if (sh_args == NULL)
|
||||||
errx (1, "Out of memory copying sh arguments");
|
errx (1, "Out of memory copying sh arguments");
|
||||||
|
Reference in New Issue
Block a user