Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ FILE *dbfile;
#define TEXTFILE "lib:dtextc.dat"
#else /* ! __AMOS__ */
#ifdef unix
#define TEXTFILE "/usr/games/lib/dunlib/dtextc.dat"
#define TEXTFILE "./games/lib/dunlib/dtextc.dat"
#else /* ! unix */
I need a definition for TEXTFILE
#endif /* ! unix */
Expand Down
2 changes: 1 addition & 1 deletion dmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "funcs.h"
#include "vars.h"

void main(argc, argv)
int main(argc, argv)
int argc;
char **argv;
{
Expand Down
6 changes: 3 additions & 3 deletions dsub.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ logical nl;

x = ((- x) - 1) * 8;
if (fseek(dbfile, x + (long)rmsg_1.mrloc, SEEK_SET) == EOF) {
fprintf(stderr, "Error seeking database loc %d\n", x);
fprintf(stderr, "Error seeking database loc %ld\n", x);
exit_();
}

Expand All @@ -93,7 +93,7 @@ logical nl;

i = getc(dbfile);
if (i == EOF) {
fprintf(stderr, "Error reading database loc %d\n", x);
fprintf(stderr, "Error reading database loc %ld\n", x);
exit_();
}
i ^= zkey[x & 0xf] ^ (x & 0xff);
Expand All @@ -111,7 +111,7 @@ logical nl;
iloc = ftell(dbfile);
rspsb2nl_(y, 0, 0, 0);
if (fseek(dbfile, iloc, SEEK_SET) == EOF) {
fprintf(stderr, "Error seeking database loc %d\n", iloc);
fprintf(stderr, "Error seeking database loc %ld\n", iloc);
exit_();
}
y = z;
Expand Down