Change references from hackpid to g.hackpid in various ports.

This commit is contained in:
Bart House
2018-12-22 14:43:50 -08:00
parent b863fad3ea
commit c9565d4ef6
5 changed files with 10 additions and 10 deletions

View File

@@ -448,8 +448,8 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
if (fd < 0) {
raw_print("Cannot create lock file");
} else {
hackpid = 1;
write(fd, (genericptr_t) &hackpid, sizeof(hackpid));
g.hackpid = 1;
write(fd, (genericptr_t) &g.hackpid, sizeof(g.hackpid));
nhclose(fd);
}
#ifdef MFLOPPY

View File

@@ -218,8 +218,8 @@ gotlock:
#endif
error("cannot creat file (%s.)", fq_lock);
} else {
if (write(fd, (char *) &hackpid, sizeof(hackpid))
!= sizeof(hackpid)) {
if (write(fd, (char *) &g.hackpid, sizeof(g.hackpid))
!= sizeof(g.hackpid)) {
#if defined(CHDIR) && !defined(NOCWD_ASSUMPTIONS)
chdirx(orgdir, 0);
#endif