[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
errx() cleanup in installboot
- To: bugs_(_at_)_openbsd_(_dot_)_org
- Subject: errx() cleanup in installboot
- From: Andrey Matveev <andrushock_(_at_)_korovino_(_dot_)_net>
- Date: Sat, 16 Aug 2003 01:04:22 +0400
- Cc: andrushock_(_at_)_korovino_(_dot_)_net
Get rid of unnecessary trailing \n in error messages.
--- sys/arch/i386/stand/installboot/installboot.c.orig Sat Aug 16 00:55:13 2003
+++ sys/arch/i386/stand/installboot/installboot.c Sat Aug 16 00:56:09 2003
@@ -299,18 +299,18 @@
/* program load header */
if (eh.e_phnum != 1) {
- errx(1, "%s: only supports one ELF load section\n", boot);
+ errx(1, "%s: only supports one ELF load section", boot);
}
phsize = eh.e_phnum * sizeof(Elf_Phdr);
ph = malloc(phsize);
if (ph == NULL) {
- errx(1, "%s: unable to allocate program header space\n",
+ errx(1, "%s: unable to allocate program header space",
boot);
}
- lseek(fd, eh.e_phoff, SEEK_SET);
+ lseek(fd, eh.e_phoff, SEEK_SET);
if (read(fd, ph, phsize) != phsize) {
- errx(1, "%s: unable to read program header space\n", boot);
+ errx(1, "%s: unable to read program header space", boot);
}
tdsize = ph->p_filesz;
Visit your host, monkey.org