summaryrefslogtreecommitdiff
path: root/emu
diff options
context:
space:
mode:
Diffstat (limited to 'emu')
-rw-r--r--emu/Nt/deveia.c4
-rw-r--r--emu/port/deveia-posix.c4
2 files changed, 4 insertions, 4 deletions
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++) {