-/* $OpenBSD: disk.c,v 1.14 2014/07/12 18:44:41 tedu Exp $ */
+/* $OpenBSD: disk.c,v 1.15 2014/07/12 21:03:38 tedu Exp $ */
/* $NetBSD: disk.c,v 1.6 1997/04/06 08:40:33 cgd Exp $ */
/*
if (part >= lp->d_npartitions ||
DL_GETPSIZE(&lp->d_partitions[part]) == 0) {
-bad: free(sc, sizeof(struct disk_softc), 0);
+bad: free(sc, sizeof(struct disk_softc));
return (ENXIO);
}
return (0);
sc = f->f_devdata;
(void)prom_close(sc->sc_fd);
- free(sc, sizeof(struct disk_softc), 0);
+ free(sc, sizeof(struct disk_softc));
f->f_devdata = NULL;
return (0);
}
-/* $OpenBSD: lf.c,v 1.9 2014/07/12 18:44:41 tedu Exp $ */
+/* $OpenBSD: lf.c,v 1.10 2014/07/12 21:03:38 tedu Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
int
lfclose(struct open_file *f)
{
- free(f->f_devdata, sizeof(struct hppa_dev), 0);
+ free(f->f_devdata, sizeof(struct hppa_dev));
f->f_devdata = NULL;
return 0;
}
-/* $OpenBSD: lf.c,v 1.3 2014/07/12 18:44:41 tedu Exp $ */
+/* $OpenBSD: lf.c,v 1.4 2014/07/12 21:03:38 tedu Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
int
lfclose(struct open_file *f)
{
- free(f->f_devdata, sizeof(struct hppa_dev), 0);
+ free(f->f_devdata, sizeof(struct hppa_dev));
f->f_devdata = NULL;
return 0;
}
-/* $OpenBSD: dev.c,v 1.6 2014/07/12 18:44:42 tedu Exp $ */
+/* $OpenBSD: dev.c,v 1.7 2014/07/12 21:03:38 tedu Exp $ */
/*
* Copyright (c) 2010 Miodrag Vallat.
if (f->f_devdata != NULL) {
pi = (struct pmon_iodata *)f->f_devdata;
rc = pmon_close(pi->fd);
- free(pi, sizeof *pi, 0);
+ free(pi, sizeof *pi);
f->f_devdata = NULL;
} else
rc = 0;
-/* $OpenBSD: sd.c,v 1.4 2014/07/12 18:44:42 tedu Exp $ */
+/* $OpenBSD: sd.c,v 1.5 2014/07/12 21:03:38 tedu Exp $ */
/* $NetBSD: sd.c,v 1.5 2013/01/22 15:48:40 tsutsui Exp $ */
/*
{
struct sd_softc *sc = f->f_devdata;
- free(sc, sizeof *sc, 0);
+ free(sc, sizeof *sc);
f->f_devdata = NULL;
return 0;
-/* $OpenBSD: diskio.c,v 1.8 2014/07/12 18:44:42 tedu Exp $ */
+/* $OpenBSD: diskio.c,v 1.9 2014/07/12 21:03:38 tedu Exp $ */
/*
* Copyright (c) 2000 Opsycon AB (www.opsycon.se)
dioclose(struct open_file *f)
{
Bios_Close(((struct dio_softc *)f->f_devdata)->sc_fd);
- free(f->f_devdata, sizeof(struct dio_softc), 0);
+ free(f->f_devdata, sizeof(struct dio_softc));
f->f_devdata = NULL;
return (0);
}
-/* $OpenBSD: dvma.c,v 1.6 2014/07/12 18:44:43 tedu Exp $ */
+/* $OpenBSD: dvma.c,v 1.7 2014/07/12 21:03:38 tedu Exp $ */
/* $NetBSD: dvma.c,v 1.2 1995/09/17 00:50:56 pk Exp $ */
/*
* Copyright (c) 1995 Gordon W. Ross
return (dvma_mapin(mem, len));
}
-extern void free(void *ptr, int len, 0);
+extern void free(void *ptr, int len);
void
dvma_free(char *dvma, int len)
{
mem = dvma_mapout(dvma, len);
if (mem)
- free(mem, len, 0);
+ free(mem, len);
}
-/* $OpenBSD: elf64_exec.c,v 1.5 2014/07/12 18:44:43 tedu Exp $ */
+/* $OpenBSD: elf64_exec.c,v 1.6 2014/07/12 21:03:38 tedu Exp $ */
/* $NetBSD: elfXX_exec.c,v 1.2 2001/08/15 20:08:15 eeh Exp $ */
/*
elf->e_phnum = 0;
bcopy(elf, addr, sizeof(Elf_Ehdr));
bcopy(shp, addr + sizeof(Elf_Ehdr), elf->e_shnum * sizeof(Elf_Shdr));
- free(shp, elf->e_shnum * sizeof(Elf_Shdr), 0);
+ free(shp, elf->e_shnum * sizeof(Elf_Shdr));
*ssymp = addr;
/*
-/* $OpenBSD: diskprobe.c,v 1.4 2014/07/12 18:44:43 tedu Exp $ */
+/* $OpenBSD: diskprobe.c,v 1.5 2014/07/12 21:03:38 tedu Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
bzero(dip, sizeof(*dip));
if (bios_getdiskinfo(order[i], &dip->bios_info) != NULL) {
- free(dip, 0, 0);
+ free(dip, 0);
continue;
}