Subject: bin/1667: removed warnings in sbin, usr.bin and usr.sbin
To: None <gnats-bugs@gnats.NetBSD.ORG>
From: Bernd Ernesti <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 10/22/1995 00:13:28
>Number:         1667
>Category:       bin
>Synopsis:       removed warnings in sbin, usr.bin and usr.sbin
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 21 19:35:01 1995
>Last-Modified:
>Originator:     Bernd Ernesti
>Organization:
	
>Release:        NetBSD-current 21-Okt-95
>Environment:
	
System: NetBSD arresum 1.0A NetBSD 1.0A (VEEGO) #265: Sun Oct 15 13:57:40 MET 1995 bernd@arresum:/src/sys/arch/amiga/compile/VEEGO amiga


>Description:
	there are some warnings when you do a make in sbin, usr.bin and usr.sbin
>How-To-Repeat:
>Fix:
	apply this diff:

*** usr.bin/tn3270/sys_curses/termout.c-orig	Sat Oct 14 04:28:48 1995
--- usr.bin/tn3270/sys_curses/termout.c	Sat Oct 21 22:31:53 1995
***************
*** 642,648 ****
  #if	defined(unix)
  	char KSEbuffer[2050];
  	char *lotsofspace = KSEbuffer;
! 	extern int abort();
  	extern char *tgetstr();
  #endif	/* defined(unix) */
  
--- 642,648 ----
  #if	defined(unix)
  	char KSEbuffer[2050];
  	char *lotsofspace = KSEbuffer;
! 	extern void abort();
  	extern char *tgetstr();
  #endif	/* defined(unix) */
  
***************
*** 655,661 ****
  	ClearArray(Terminal);
  	terminalCursorAddress = SetBufferAddress(0,0);
  #if defined(unix)
! 	signal(SIGHUP, (void (*))abort);
  #endif
  
  	TryToSend = FastScreen;
--- 655,661 ----
  	ClearArray(Terminal);
  	terminalCursorAddress = SetBufferAddress(0,0);
  #if defined(unix)
! 	signal(SIGHUP, abort);
  #endif
  
  	TryToSend = FastScreen;
*** usr.sbin/amd/rpcx/amq_svc.c-orig	Sat Oct 14 04:50:59 1995
--- usr.sbin/amd/rpcx/amq_svc.c	Sat Oct 21 23:24:27 1995
***************
*** 119,125 ****
  		return;
  	}
  	bzero((char *)&argument, sizeof(argument));
! 	if (!svc_getargs(transp, xdr_argument, &argument)) {
  		svcerr_decode(transp);
  		return;
  	}
--- 119,125 ----
  		return;
  	}
  	bzero((char *)&argument, sizeof(argument));
! 	if (!svc_getargs(transp, xdr_argument, (caddr_t) &argument)) {
  		svcerr_decode(transp);
  		return;
  	}
***************
*** 127,133 ****
  	if (result != NULL && !svc_sendreply(transp, xdr_result, result)) {
  		svcerr_systemerr(transp);
  	}
! 	if (!svc_freeargs(transp, xdr_argument, &argument)) {
  		plog(XLOG_FATAL, "unable to free rpc arguments in amqprog_1");
  		going_down(1);
  	}
--- 127,133 ----
  	if (result != NULL && !svc_sendreply(transp, xdr_result, result)) {
  		svcerr_systemerr(transp);
  	}
! 	if (!svc_freeargs(transp, xdr_argument, (caddr_t) &argument)) {
  		plog(XLOG_FATAL, "unable to free rpc arguments in amqprog_1");
  		going_down(1);
  	}
*** sbin/fsck/inode.c-orig	Sat Oct 14 02:09:41 1995
--- sbin/fsck/inode.c	Sat Oct 21 21:50:04 1995
***************
*** 540,546 ****
  		return (0);
  	}
  	dp->di_mode = type;
! 	(void)time(&dp->di_atime);
  	dp->di_mtime = dp->di_ctime = dp->di_atime;
  	dp->di_size = sblock.fs_fsize;
  	dp->di_blocks = btodb(sblock.fs_fsize);
--- 540,546 ----
  		return (0);
  	}
  	dp->di_mode = type;
! 	(void)time((time_t *)&dp->di_atime);
  	dp->di_mtime = dp->di_ctime = dp->di_atime;
  	dp->di_size = sblock.fs_fsize;
  	dp->di_blocks = btodb(sblock.fs_fsize);
*** sbin/dumplfs/dumplfs.c-orig	Sat Oct 14 02:09:09 1995
--- sbin/dumplfs/dumplfs.c	Sat Oct 21 21:55:17 1995
***************
*** 363,371 ****
  		"gid   ", dip->di_gid,
  		"size  ", dip->di_size);
  	(void)printf("%s%s%s%s%s%s",
! 		"atime ", ctime(&dip->di_atime),
! 		"mtime ", ctime(&dip->di_mtime),
! 		"ctime ", ctime(&dip->di_ctime));
  	(void)printf("inum  %d\n", dip->di_inumber);
  	(void)printf("Direct Addresses\n");
  	for (i = 0; i < NDADDR; i++) {
--- 363,371 ----
  		"gid   ", dip->di_gid,
  		"size  ", dip->di_size);
  	(void)printf("%s%s%s%s%s%s",
! 		"atime ", ctime((time_t *)&dip->di_atime),
! 		"mtime ", ctime((time_t *)&dip->di_mtime),
! 		"ctime ", ctime((time_t *)&dip->di_ctime));
  	(void)printf("inum  %d\n", dip->di_inumber);
  	(void)printf("Direct Addresses\n");
  	for (i = 0; i < NDADDR; i++) {
*** sbin/fsdb/fsdbutil.c-orig	Sat Oct 14 02:10:03 1995
--- sbin/fsdb/fsdbutil.c	Sat Oct 21 21:53:10 1995
***************
*** 130,142 ****
  	break;
      }
      printf("I=%lu MODE=%o SIZE=%qu", inum, dp->di_mode, dp->di_size);
!     p = ctime(&dp->di_mtime);
      printf("\n\tMTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20],
  	   dp->di_mtimensec);
!     p = ctime(&dp->di_ctime);
      printf("\n\tCTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20],
  	   dp->di_ctimensec);
!     p = ctime(&dp->di_atime);
      printf("\n\tATIME=%15.15s %4.4s [%d nsec]\n", &p[4], &p[20],
  	   dp->di_atimensec);
  
--- 130,142 ----
  	break;
      }
      printf("I=%lu MODE=%o SIZE=%qu", inum, dp->di_mode, dp->di_size);
!     p = ctime((time_t *)&dp->di_mtime);
      printf("\n\tMTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20],
  	   dp->di_mtimensec);
!     p = ctime((time_t *)&dp->di_ctime);
      printf("\n\tCTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20],
  	   dp->di_ctimensec);
!     p = ctime((time_t *)&dp->di_atime);
      printf("\n\tATIME=%15.15s %4.4s [%d nsec]\n", &p[4], &p[20],
  	   dp->di_atimensec);
  
>Audit-Trail:
>Unformatted: