=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/make/targ.c,v retrieving revision 1.40 retrieving revision 1.41 diff -c -r1.40 -r1.41 *** src/usr.bin/make/targ.c 2006/01/20 23:10:19 1.40 --- src/usr.bin/make/targ.c 2007/09/16 12:09:36 1.41 *************** *** 1,5 **** /* $OpenPackages$ */ ! /* $OpenBSD: targ.c,v 1.40 2006/01/20 23:10:19 espie Exp $ */ /* $NetBSD: targ.c,v 1.11 1997/02/20 16:51:50 christos Exp $ */ /* --- 1,5 ---- /* $OpenPackages$ */ ! /* $OpenBSD: targ.c,v 1.41 2007/09/16 12:09:36 espie Exp $ */ /* $NetBSD: targ.c,v 1.11 1997/02/20 16:51:50 christos Exp $ */ /* *************** *** 397,430 **** /*- *----------------------------------------------------------------------- - * Targ_FmtTime -- - * Format a modification time in some reasonable way and return it. - * - * Results: - * The time reformatted. - * - * Side Effects: - * The time is placed in a static area, so it is overwritten - * with each call. - *----------------------------------------------------------------------- - */ - char * - Targ_FmtTime(TIMESTAMP time) - { - struct tm *parts; - static char buf[128]; - time_t t; - - t = timestamp2time_t(time); - - parts = localtime(&t); - strftime(buf, sizeof buf, "%H:%M:%S %b %d, %Y", parts); - buf[sizeof(buf) - 1] = '\0'; - return buf; - } - - /*- - *----------------------------------------------------------------------- * Targ_PrintType -- * Print out a type field giving only those attributes the user can * set. --- 397,402 ---- *************** *** 486,492 **** if (! (gn->type & (OP_JOIN|OP_USE|OP_EXEC))) { if (!is_out_of_date(gn->mtime)) { printf("# last modified %s: %s\n", ! Targ_FmtTime(gn->mtime), (gn->made == UNMADE ? "unmade" : (gn->made == MADE ? "made" : (gn->made == UPTODATE ? "up-to-date" : --- 458,464 ---- if (! (gn->type & (OP_JOIN|OP_USE|OP_EXEC))) { if (!is_out_of_date(gn->mtime)) { printf("# last modified %s: %s\n", ! time_to_string(gn->mtime), (gn->made == UNMADE ? "unmade" : (gn->made == MADE ? "made" : (gn->made == UPTODATE ? "up-to-date" :