now using gcc-3.0 on my IRIX box; which found a couple new warnings; fixed.

This commit is contained in:
lindes 2001-08-25 06:53:32 +00:00
parent 04b478f7b2
commit 9dc70b48a1
2 changed files with 5 additions and 3 deletions

View File

@ -7,6 +7,8 @@
#include "ttyload.h"
#include <stdio.h> /* for perror() */
#include <unistd.h> /* for exit() */
#include <sys/types.h> /* sys/syget.h needs this */
#include <sys/sysget.h> /* for sysget() */

View File

@ -6,7 +6,7 @@
* Copyright 1996 by David Lindes
* all right reserved.
*
* Version information: $Id: ttyload.c,v 1.19 2001-08-25 05:07:41 lindes Exp $
* Version information: $Id: ttyload.c,v 1.20 2001-08-25 06:53:32 lindes Exp $
*
*/
@ -32,7 +32,7 @@
#define MINROWS (HEIGHTPAD + 6)
#define MINCOLS (WIDTHPAD + 6)
char *c="$Id: ttyload.c,v 1.19 2001-08-25 05:07:41 lindes Exp $";
char *c="$Id: ttyload.c,v 1.20 2001-08-25 06:53:32 lindes Exp $";
char strbuf[BUFSIZ],
*optstring = "i:hvmr:c:",
@ -270,7 +270,7 @@ int main(argc, argv, envp)
clear_screen();
}
if(!strftime(strbuf, 9, "%T", thetimetm))
if(!strftime(strbuf, 9, "%H:%M:%S", thetimetm))
{
/* This should never happen, I hope... */
perror("strftime failed");