Module Name: src Committed By: christos Date: Wed Mar 20 00:34:33 UTC 2024
Modified Files: src/sys/arch/hppa/stand/mkboot: mkboot.c Log Message: remove extra stat (Jan-Benedict Glaw) To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/hppa/stand/mkboot/mkboot.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/hppa/stand/mkboot/mkboot.c diff -u src/sys/arch/hppa/stand/mkboot/mkboot.c:1.3 src/sys/arch/hppa/stand/mkboot/mkboot.c:1.4 --- src/sys/arch/hppa/stand/mkboot/mkboot.c:1.3 Thu Feb 8 14:24:43 2024 +++ src/sys/arch/hppa/stand/mkboot/mkboot.c Tue Mar 19 20:34:32 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: mkboot.c,v 1.3 2024/02/08 19:24:43 christos Exp $ */ +/* $NetBSD: mkboot.c,v 1.4 2024/03/20 00:34:32 christos Exp $ */ /* $OpenBSD: mkboot.c,v 1.9 2001/05/17 00:57:55 pvalchev Exp $ */ @@ -421,8 +421,6 @@ bcddate(char *file, char *toc) stat(file, &statb); tm = localtime(&statb.st_ctime); } - stat(file, &statb); - tm = localtime(&statb.st_ctime); tm->tm_year %= 100; *toc = (tm->tm_year / 10) << 4; *toc++ |= tm->tm_year % 10;