Skip to content
Snippets Groups Projects
Commit a082325b authored by John Gilmore's avatar John Gilmore
Browse files

* Makefile.in: Make SunOS halfdone VPATH work.

* p1.c:  Lint picked up by HP native compiler.
parent 1fa643be
No related branches found
No related tags found
No related merge requests found
...@@ -75,9 +75,8 @@ p2.c:writecode ...@@ -75,9 +75,8 @@ p2.c:writecode
writecode:writecode.c writecode:writecode.c
$(CC) -o writecode -g $(CSEARCH) $(srcdir)/writecode.c $(CC) -o writecode -g $(CSEARCH) $(srcdir)/writecode.c
run.o: run.c
perifs.o: perifs.c
#### host and target dependent Makefile fragments come in here. #### host and target dependent Makefile fragments come in here.
### ###
......
...@@ -51,11 +51,11 @@ littleendian; ...@@ -51,11 +51,11 @@ littleendian;
static void static void
meminit () meminit ()
{ {
if (!saved_state.mem) if (saved_state.mem == 0)
{ {
int tmp; int tmp;
saved_state.mem = calloc (1024, 64); saved_state.mem = (unsigned short *)calloc (1024, 64);
littleendian.i = 1; littleendian.i = 1;
/* initialze the array of pointers to byte registers */ /* initialze the array of pointers to byte registers */
for (tmp = 0; tmp < 8; tmp++) for (tmp = 0; tmp < 8; tmp++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment