2006-08-30 Joel Sherrill <joel@OARcorp.com>

* ftpd/ftpd.c, libcsupport/include/sys/ioccom.h,
	libcsupport/src/ioctl.c, libnetworking/kern/uipc_mbuf.c,
	libnetworking/libc/inet_addr.c, libnetworking/net/ethernet.h,
	libnetworking/net/if.c, libnetworking/net/if_ethersubr.c,
	libnetworking/net/if_ppp.c, libnetworking/net/if_pppvar.h,
	libnetworking/net/if_var.h, libnetworking/net/ppp_tty.c,
	libnetworking/netinet/in_cksum.c, libnetworking/nfs/bootp_subr.c,
	libnetworking/rtems/rtems_bsdnet_internal.h,
	libnetworking/sys/mbuf.h, pppd/md4.c, pppd/pppd.h: Remove warnings
	due to improper use of int which shows up on 16 bit targets. Added
	ioctl_command_t since IOCTL command argument does not reliably fit
	into 16 bits.
This commit is contained in:
Joel Sherrill
2006-08-31 01:10:02 +00:00
parent ae5a79c349
commit a009d94459
19 changed files with 76 additions and 49 deletions

View File

@@ -1192,7 +1192,7 @@ send_dirline(int s, int wide, time_t curTime, char const* path,
struct tm bt;
time_t tf = stat_buf.st_mtime;
enum { SIZE = 80 };
enum { SIX_MONTHS = 365*24*60*60/2 };
uint32_t SIX_MONTHS = (365L*24L*60L*60L)/2L;
char timeBuf[SIZE];
gmtime_r(&tf, &bt);
if(curTime > tf + SIX_MONTHS || tf > curTime + SIX_MONTHS)