*/
#ifndef lint
-static char rcsid[] = "$Id: ftime.c,v 1.1.1.1 1995/10/18 08:42:34 deraadt Exp $";
+static char rcsid[] = "$Id: ftime.c,v 1.2 1996/12/14 07:01:27 tholo Exp $";
#endif /* not lint */
#include <sys/types.h>
if (gettimeofday(&t, &tz) < 0)
return (-1);
- tbp->millitm = t.tv_usec / 1000;
+ tbp->millitm = (unsigned short)(t.tv_usec / 1000);
tbp->time = t.tv_sec;
tbp->timezone = tz.tz_minuteswest;
tbp->dstflag = tz.tz_dsttime;
{
struct sockaddr_in sin, sin2, from;
struct hostent *hp;
+ unsigned timo = 1;
u_short port;
- int s, timo = 1, s3;
+ int s, s3;
char c;
hp = gethostbyname(*ahost);
sin.sin_family = hp->h_addrtype;
sin.sin_len = sizeof(sin);
sin.sin_port = rport;
- bcopy(hp->h_addr, (caddr_t)&sin.sin_addr, hp->h_length);
+ bcopy(hp->h_addr, (char *)&sin.sin_addr, (size_t)hp->h_length);
if (connect(s, (struct sockaddr *)&sin, sizeof(sin)) < 0) {
if (errno == ECONNREFUSED && timo <= 16) {
(void) close(s);
-/* $OpenBSD: regsub.c,v 1.2 1996/07/24 05:39:12 downsj Exp $ */
+/* $OpenBSD: regsub.c,v 1.3 1996/12/14 07:01:29 tholo Exp $ */
/*
* regsub
*/
#ifndef lint
-static char *rcsid = "$OpenBSD: regsub.c,v 1.2 1996/07/24 05:39:12 downsj Exp $";
+static char *rcsid = "$OpenBSD: regsub.c,v 1.3 1996/12/14 07:01:29 tholo Exp $";
#endif /* not lint */
#include <regexp.h>
const char *source;
char *dest;
{
- register char *src;
+ register const char *src;
+ register size_t len;
register char *dst;
register char c;
register int no;
- register int len;
if (prog == NULL || source == NULL || dest == NULL) {
v8_regerror("NULL parm to regsub");
return;
}
- src = (char *)source;
+ src = source;
dst = dest;
while ((c = *src++) != '\0') {
if (c == '&')