about summary refs log tree commit diff stats
path: root/WWW/Library
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-05-14 12:06:00 -0400
committerThomas E. Dickey <dickey@invisible-island.net>1998-05-14 12:06:00 -0400
commitd2bc002de2501d28459b43ced36eaaaa001b59c4 (patch)
tree7f2289a2ad9120dcf4b8c592dd1cb6ff1212d4d9 /WWW/Library
parent116ac6932821c4a82256313792b26ab28259e8f0 (diff)
downloadlynx-snapshots-d2bc002de2501d28459b43ced36eaaaa001b59c4.tar.gz
snapshot of project "lynx", label v2-8-1dev_11
Diffstat (limited to 'WWW/Library')
-rw-r--r--WWW/Library/Implementation/HTAAProt.c12
-rw-r--r--WWW/Library/Implementation/HTFile.c7
-rw-r--r--WWW/Library/Implementation/SGML.c2
3 files changed, 11 insertions, 10 deletions
diff --git a/WWW/Library/Implementation/HTAAProt.c b/WWW/Library/Implementation/HTAAProt.c
index e1d6f61f..12c6361a 100644
--- a/WWW/Library/Implementation/HTAAProt.c
+++ b/WWW/Library/Implementation/HTAAProt.c
@@ -129,7 +129,7 @@ PUBLIC int HTAA_getUid NOARGS
 			    "HTAA_getUid: getpwuid",
 			    current_prot->uid_name,
 			    pw->pw_name, pw->pw_passwd,
-			    pw->pw_uid, pw->pw_gid);
+			    (int) pw->pw_uid, (int) pw->pw_gid);
 		return pw->pw_uid;	
 	    }
 	}
@@ -139,7 +139,7 @@ PUBLIC int HTAA_getUid NOARGS
 			    "HTAA_getUid: getpwnam",
 			    current_prot->uid_name, "returned",
 			    pw->pw_name, pw->pw_passwd,
-			    pw->pw_uid, pw->pw_gid);
+			    (int) pw->pw_uid, (int) pw->pw_gid);
 		return pw->pw_uid;
 	    }
 	}
@@ -149,7 +149,7 @@ PUBLIC int HTAA_getUid NOARGS
     */
     if (NULL != (pw = getpwnam("nobody"))) {
 	CTRACE(tfp, "HTAA_getUid: Uid for `nobody' is %d\n",
-		    pw->pw_uid);
+		    (int) pw->pw_uid);
 	return pw->pw_uid;
     }
     /*
@@ -179,7 +179,7 @@ PUBLIC int HTAA_getGid NOARGS
 		CTRACE(tfp, "%s(%s) returned (%s:%s:%d:...)\n",
 			    "HTAA_getGid: getgrgid",
 			    current_prot->gid_name,
-			    gr->gr_name, gr->gr_passwd, gr->gr_gid);
+			    gr->gr_name, (int) gr->gr_passwd, (int) gr->gr_gid);
 #endif
 		return gr->gr_gid;
 	    }
@@ -190,7 +190,7 @@ PUBLIC int HTAA_getGid NOARGS
 		CTRACE(tfp, "%s(\"%s\") returned (%s:%s:%d:...)\n",
 			    "HTAA_getGid: getgrnam",
 			    current_prot->gid_name,
-			    gr->gr_name, gr->gr_passwd, gr->gr_gid);
+			    gr->gr_name, (int) gr->gr_passwd, (int) gr->gr_gid);
 #endif
 		return gr->gr_gid;
 	    }
@@ -201,7 +201,7 @@ PUBLIC int HTAA_getGid NOARGS
     */
     if (NULL != (gr = getgrnam("nogroup"))) {
 	CTRACE(tfp, "HTAA_getGid: Gid for `nogroup' is %d\n",
-		    gr->gr_gid);
+		    (int) gr->gr_gid);
 	return gr->gr_gid;
     }
     /*
diff --git a/WWW/Library/Implementation/HTFile.c b/WWW/Library/Implementation/HTFile.c
index c809ff63..e4548616 100644
--- a/WWW/Library/Implementation/HTFile.c
+++ b/WWW/Library/Implementation/HTFile.c
@@ -1107,8 +1107,9 @@ PUBLIC BOOL HTEditable ARGS1(
 	fprintf(tfp,
 	    "File mode is 0%o, uid=%d, gid=%d. My uid=%d, %d groups (",
 	    (unsigned int) fileStatus.st_mode, fileStatus.st_uid,
-	    fileStatus.st_gid,
-	    myUid, ngroups);
+	    (int) fileStatus.st_gid,
+	    (int) myUid,
+	    (int) ngroups);
 	for (i2 = 0; i2 < ngroups; i2++)
 	    fprintf(tfp, " %d", groups[i2]);
 	fprintf(tfp, ")\n");
@@ -1753,7 +1754,7 @@ PUBLIC int HTLoadFile ARGS4(
 	if ((strlen(localname) > strlen(MULTI_SUFFIX)) &&
 	    (0 == strcmp(localname + strlen(localname) - strlen(MULTI_SUFFIX),
 			 MULTI_SUFFIX))) {
-	    DIR *dp;
+	    DIR *dp = 0;
 	    BOOL forget_multi = NO;
 
 	    STRUCT_DIRENT * dirbuf;
diff --git a/WWW/Library/Implementation/SGML.c b/WWW/Library/Implementation/SGML.c
index 66c515f3..32243519 100644
--- a/WWW/Library/Implementation/SGML.c
+++ b/WWW/Library/Implementation/SGML.c
@@ -1106,7 +1106,7 @@ PRIVATE void SGML_character ARGS2(
     CONST char * EntityName;
     char * p;
     BOOLEAN chk;	/* Helps (?) walk through all the else ifs... */
-    UCode_t clong, uck; /* Enough bits for UCS4 ... */
+    UCode_t clong, uck = 0; /* Enough bits for UCS4 ... */
     char c;
     char saved_char_in = '\0';