about summary refs log tree commit diff stats
path: root/src/LYUtils.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2013-07-21 00:42:39 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2013-07-21 00:42:39 -0400
commite16dad6521b5662ea017de8b639301bd996415c7 (patch)
tree5c49ff9aad0a0d3f7eb226345a9b92ce9b76a32f /src/LYUtils.c
parent519c2333fe3cb89fd34236753a09b4b2f60cbce1 (diff)
downloadlynx-snapshots-e16dad6521b5662ea017de8b639301bd996415c7.tar.gz
snapshot of project "lynx", label v2-8-8dev_15i
Diffstat (limited to 'src/LYUtils.c')
-rw-r--r--src/LYUtils.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/LYUtils.c b/src/LYUtils.c
index 011b15db..a84d08c9 100644
--- a/src/LYUtils.c
+++ b/src/LYUtils.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYUtils.c,v 1.239 2013/05/05 21:26:26 tom Exp $
+ * $LynxId: LYUtils.c,v 1.240 2013/07/21 00:40:35 tom Exp $
  */
 #include <HTUtils.h>
 #include <HTTCP.h>
@@ -3472,7 +3472,7 @@ static int fmt_tempname(char *result,
      */
 #ifdef HAVE_RAND_TEMPNAME
     if (first) {
-	lynx_srand((unsigned) ((long) time((time_t *) 0) + (long) result));
+	lynx_srand((unsigned) ((long) time((time_t *) NULL) + (long) result));
 	first = FALSE;
     }
 
@@ -4527,13 +4527,12 @@ int win32_check_interrupt(void)
 void sleep(unsigned sec)
 {
     unsigned int i, j;
-    int c;
 
     for (j = 0; j < sec; j++) {
 	for (i = 0; i < 10; i++) {
 	    Sleep(100);
 	    if (kbhit()) {
-		c = LYgetch();
+		(void) LYgetch();
 		return;
 	    }
 	}