about summary refs log tree commit diff stats
path: root/src/LYCgi.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2009-01-02 02:01:19 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2009-01-02 02:01:19 -0500
commitdfae7cc51e19e1ca4aa857bf858e7e0ad4fa9ce1 (patch)
treeb60b22b24df118d09bfa7b7e908a6ed74e165d7d /src/LYCgi.c
parent1928ffc4107112416223241f38b9c89f1620503f (diff)
downloadlynx-snapshots-dfae7cc51e19e1ca4aa857bf858e7e0ad4fa9ce1.tar.gz
snapshot of project "lynx", label v2-8-7dev_12a
Diffstat (limited to 'src/LYCgi.c')
-rw-r--r--src/LYCgi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/LYCgi.c b/src/LYCgi.c
index 45ec8ee6..2274234c 100644
--- a/src/LYCgi.c
+++ b/src/LYCgi.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYCgi.c,v 1.53 2008/12/07 22:13:52 tom Exp $
+ * $LynxId: LYCgi.c,v 1.54 2009/01/01 22:39:06 tom Exp $
  *                   Lynx CGI support                              LYCgi.c
  *                   ================
  *
@@ -54,8 +54,8 @@ struct _HTStream {
 };
 
 static char **env = NULL;	/* Environment variables */
-static int envc_size = 0;	/* Slots in environment array */
-static int envc = 0;		/* Slots used so far */
+static unsigned envc_size = 0;	/* Slots in environment array */
+static unsigned envc = 0;	/* Slots used so far */
 static HTList *alloced = NULL;
 
 #ifdef LYNXCGI_LINKS
@@ -449,7 +449,7 @@ static int LYLoadCGI(const char *arg,
 		    remaining = BStrLen(anAnchor->post_data);
 		    while ((written = write(fd1[1],
 					    BStrData(anAnchor->post_data) + total_written,
-					    remaining)) != 0) {
+					    (unsigned) remaining)) != 0) {
 			if (written < 0) {
 #ifdef EINTR
 			    if (errno == EINTR)
@@ -585,7 +585,7 @@ static int LYLoadCGI(const char *arg,
 		    }
 		}
 
-		argv = (char **) malloc(argv_cnt * sizeof(char *));
+		argv = (char **) malloc((unsigned) argv_cnt * sizeof(char *));
 
 		if (argv == NULL) {
 		    outofmem(__FILE__, "LYCgi");