remove a bunch of dangerous casts (useless casts from void * to something
authorespie <espie@openbsd.org>
Fri, 23 Jan 2015 13:18:40 +0000 (13:18 +0000)
committerespie <espie@openbsd.org>
Fri, 23 Jan 2015 13:18:40 +0000 (13:18 +0000)
commit7f5855dc00905546eba6e62ce5907da713fbf4c0
tree47e05a48aeddd7c8a79f19b2458d11294900bb1f
parent0656c3a104b16ba6d1ebe3c80e184049f39a88fd
remove a bunch of dangerous casts (useless casts from void * to something
else, in some cases by adding extra temporary variables.
IMO, it's much better practice to do

void *a;
int *p = a;
*p = 42;

rather than
void *a;
*(int *)a = 42;

okay miod@... to be revisited for some possible const additions later.
usr.bin/make/compat.c
usr.bin/make/dir.c
usr.bin/make/direxpand.c
usr.bin/make/dump.c
usr.bin/make/engine.c
usr.bin/make/for.c
usr.bin/make/main.c
usr.bin/make/make.c
usr.bin/make/parse.c
usr.bin/make/suff.c
usr.bin/make/varmodifiers.c