commit 08e4df57459e575f5c6ed06cb9fc86deea54c524
parent 865fbf79ecad1af8e534a900f742947d03b74a97
Author: parazyd <parazyd@dyne.org>
Date: Sat, 22 Dec 2018 11:33:22 -0500
Fix some compile warnings.
Diffstat:
3 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/net.c b/net.c
@@ -29,7 +29,7 @@ static char *netnames[] = {
};
int net_gettype(char *str) {
- int i;
+ unsigned long int i;
for (i = 0; i < nelem(netnames); i++)
if (!strcmp(netnames[i], str))
diff --git a/rohrpost.c b/rohrpost.c
@@ -37,7 +37,7 @@ struct command cmds[] = {
};
int main(int argc, char *argv[]) {
- int i;
+ unsigned long int i;
char *lsl;
for (i = 0; i < nelem(cmds); i++) {
diff --git a/util.c b/util.c
@@ -87,8 +87,7 @@ int humansize(char *sizestr) {
int getfpr(char *desc) {
net_t *net;
- int i;
- unsigned int fpr_size;
+ unsigned int i, fpr_size;
X509 *cert;
const EVP_MD *fpr_type;
unsigned char fpr[EVP_MAX_MD_SIZE];
@@ -125,7 +124,7 @@ struct util utils[] = {
};
int utilmain(int argc, char *argv[]) {
- int i;
+ unsigned long int i;
char *runcmd = NULL;
ARGBEGIN {