X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=miscutils%2Fdutmp.c;h=19e09fbb0a178dbb5c79988b2449a828acf54a58;hb=83bcba26c01d945d1964d6d5de715a2356a858cf;hp=cce260ca4955ead13c3f0c6e3897c8dbc43e3fba;hpb=c36642195cb97c1a632b85d4f473058f1409aaed;p=oweals%2Fbusybox.git diff --git a/miscutils/dutmp.c b/miscutils/dutmp.c index cce260ca4..19e09fbb0 100644 --- a/miscutils/dutmp.c +++ b/miscutils/dutmp.c @@ -34,12 +34,12 @@ extern int dutmp_main(int argc, char **argv) } else { file = open(argv[1], O_RDONLY); if (file < 0) { - perror_msg_and_die(io_error, argv[1]); + error_msg_and_die(io_error, argv[1]); } } /* Kludge around the fact that the binary format for utmp has changed. */ -#if __GNU_LIBRARY__ < 5 || defined __UCLIBC__ +#if __GNU_LIBRARY__ < 5 /* Linux libc5 */ while (read(file, (void*)&ut, sizeof(struct utmp))) { printf("%d|%d|%s|%s|%s|%s|%s|%lx\n",