summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rw-r--r--emu/Nt/deveia.c4
-rw-r--r--emu/port/deveia-posix.c4
-rw-r--r--include/version.h2
4 files changed, 7 insertions, 5 deletions
diff --git a/CHANGES b/CHANGES
index 425b4d0f..2ae795ac 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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)"