bfunctions -> memfunctions
This commit is contained in:
parent
ed0c7a8de5
commit
af1ee80179
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: input.c,v 1.4 1995/04/27 21:22:24 mycroft Exp $ */
|
||||
/* $NetBSD: input.c,v 1.5 1997/01/13 06:50:25 tls Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
@ -49,7 +49,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)input.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: input.c,v 1.4 1995/04/27 21:22:24 mycroft Exp $";
|
||||
static char rcsid[] = "$NetBSD: input.c,v 1.5 1997/01/13 06:50:25 tls Exp $";
|
||||
#endif
|
||||
#endif not lint
|
||||
|
||||
@ -378,7 +378,7 @@ setplane(c)
|
||||
pp = findplane(number(c));
|
||||
if (pp == NULL)
|
||||
return ("Unknown Plane");
|
||||
bcopy(pp, &p, sizeof (p));
|
||||
memcpy(&p, pp, sizeof (p));
|
||||
p.delayd = 0;
|
||||
return (NULL);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: log.c,v 1.3 1995/03/21 15:04:21 cgd Exp $ */
|
||||
/* $NetBSD: log.c,v 1.4 1997/01/13 06:50:26 tls Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
@ -49,7 +49,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)log.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: log.c,v 1.3 1995/03/21 15:04:21 cgd Exp $";
|
||||
static char rcsid[] = "$NetBSD: log.c,v 1.4 1997/01/13 06:50:26 tls Exp $";
|
||||
#endif
|
||||
#endif not lint
|
||||
|
||||
@ -192,19 +192,19 @@ log_score(list_em)
|
||||
if (thisscore.time > score[i].time) {
|
||||
if (num_scores < NUM_SCORES)
|
||||
num_scores++;
|
||||
bcopy(&score[i],
|
||||
&score[num_scores - 1],
|
||||
sizeof (score[i]));
|
||||
bcopy(&thisscore, &score[i],
|
||||
sizeof (score[i]));
|
||||
memcpy(&score[num_scores - 1],
|
||||
&score[i],
|
||||
sizeof (score[i]));
|
||||
memcpy(&score[i], &thisscore,
|
||||
sizeof (score[i]));
|
||||
changed++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!found && !changed && num_scores < NUM_SCORES) {
|
||||
bcopy(&thisscore, &score[num_scores],
|
||||
sizeof (score[num_scores]));
|
||||
memcpy(&score[num_scores], &thisscore,
|
||||
sizeof (score[num_scores]));
|
||||
num_scores++;
|
||||
changed++;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: update.c,v 1.4 1995/04/27 21:22:26 mycroft Exp $ */
|
||||
/* $NetBSD: update.c,v 1.5 1997/01/13 06:50:27 tls Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
@ -49,7 +49,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)update.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: update.c,v 1.4 1995/04/27 21:22:26 mycroft Exp $";
|
||||
static char rcsid[] = "$NetBSD: update.c,v 1.5 1997/01/13 06:50:27 tls Exp $";
|
||||
#endif
|
||||
#endif not lint
|
||||
|
||||
@ -304,7 +304,7 @@ addplane()
|
||||
PLANE p, *pp, *p1;
|
||||
int i, num_starts, close, rnd, rnd2, pnum;
|
||||
|
||||
bzero(&p, sizeof (p));
|
||||
memset(&p, 0, sizeof (p));
|
||||
|
||||
p.status = S_MARKED;
|
||||
p.plane_type = random() % 2;
|
||||
@ -359,7 +359,7 @@ addplane()
|
||||
p.plane_no = pnum;
|
||||
|
||||
pp = newplane();
|
||||
bcopy(&p, pp, sizeof (p));
|
||||
memcpy(pp, &p, sizeof (p));
|
||||
|
||||
if (pp->orig_type == T_AIRPORT)
|
||||
append(&ground, pp);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: scores.c,v 1.2 1995/04/22 07:42:38 cgd Exp $ */
|
||||
/* $NetBSD: scores.c,v 1.3 1997/01/13 06:51:57 tls Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -240,7 +240,7 @@ thisuser()
|
||||
l = strlen(p);
|
||||
if (l >= sizeof(u))
|
||||
l = sizeof(u) - 1;
|
||||
bcopy(p, u, l);
|
||||
memcpy(u, p, l);
|
||||
u[l] = '\0';
|
||||
return (u);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user