diff options
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | emu/Nt/deveia.c | 4 | ||||
| -rw-r--r-- | emu/port/deveia-posix.c | 4 | ||||
| -rw-r--r-- | include/version.h | 2 |
4 files changed, 7 insertions, 5 deletions
@@ -1,3 +1,5 @@ +20081107 + replace calls to calloc by malloc 20081106 os/port/dis.c prevent new spawns during killgrp also synchronise two killgrps of the same group diff --git a/emu/Nt/deveia.c b/emu/Nt/deveia.c index 4294b8fe..0ffa2e7a 100644 --- a/emu/Nt/deveia.c +++ b/emu/Nt/deveia.c @@ -175,10 +175,10 @@ eiainit(void) // allocate directory table and eia structure // for each active port. ndir = Nqid*nports+1; - dp = eiadir = calloc(ndir, sizeof(Dirtab)); + dp = eiadir = malloc(ndir*sizeof(Dirtab)); if(dp == 0) panic("eiainit"); - eia = calloc(nports, sizeof(Eia)); + eia = malloc(nports*sizeof(Eia)); if(eia == 0) { free(dp); panic("eiainit"); diff --git a/emu/port/deveia-posix.c b/emu/port/deveia-posix.c index e6e34bc1..5db8ae86 100644 --- a/emu/port/deveia-posix.c +++ b/emu/port/deveia-posix.c @@ -241,7 +241,7 @@ eiainit(void) return; ndir = Nqid*nports+1; - dp = eiadir = calloc(ndir, sizeof(Dirtab)); + dp = eiadir = malloc(ndir*sizeof(Dirtab)); if(dp == 0) panic("eiainit"); strcpy(dp->name, "."); @@ -249,7 +249,7 @@ eiainit(void) dp->qid.type = QTDIR; dp->perm = DMDIR|0555; dp++; - eia = calloc(nports, sizeof(Eia)); + eia = malloc(nports*sizeof(Eia)); if(eia == 0) panic("eiainit"); for(i = 0; i < nports; i++) { diff --git a/include/version.h b/include/version.h index cc952732..9161e6af 100644 --- a/include/version.h +++ b/include/version.h @@ -1 +1 @@ -#define VERSION "Fourth Edition (20081106)" +#define VERSION "Fourth Edition (20081107)" |
