=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/ci.c,v retrieving revision 1.61 retrieving revision 1.62 diff -c -r1.61 -r1.62 *** src/usr.bin/rcs/ci.c 2005/11/17 00:16:35 1.61 --- src/usr.bin/rcs/ci.c 2005/11/17 00:22:30 1.62 *************** *** 1,4 **** ! /* $OpenBSD: ci.c,v 1.61 2005/11/17 00:16:35 niallo Exp $ */ /* * Copyright (c) 2005 Niall O'Higgins * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: ci.c,v 1.62 2005/11/17 00:22:30 niallo Exp $ */ /* * Copyright (c) 2005 Niall O'Higgins * All rights reserved. *************** *** 72,78 **** static char * checkin_getlogmsg(RCSNUM *, RCSNUM *); static void checkin_init(struct checkin_params *); static void checkin_revert(struct checkin_params *pb); ! static int checkin_setrevdate(struct checkin_params *pb); void checkin_usage(void) --- 72,78 ---- static char * checkin_getlogmsg(RCSNUM *, RCSNUM *); static void checkin_init(struct checkin_params *); static void checkin_revert(struct checkin_params *pb); ! static int checkin_mtimedate(struct checkin_params *pb); void checkin_usage(void) *************** *** 327,333 **** * time of the working file if -d has no argument. */ if (pb.date == DATE_MTIME ! && (checkin_setrevdate(&pb) < 0)) continue; --- 327,333 ---- * time of the working file if -d has no argument. */ if (pb.date == DATE_MTIME ! && (checkin_mtimedate(&pb) < 0)) continue; *************** *** 673,687 **** } /* ! * checkin_setrevdate() * * Set the date of the revision to be the last modification ! * time of the working file if -d has no argument. * * On success, return 0. On error return -1. */ static int ! checkin_setrevdate(struct checkin_params *pb) { struct stat sb; if (stat(pb->filename, &sb) != 0) { --- 673,687 ---- } /* ! * checkin_mtimedate() * * Set the date of the revision to be the last modification ! * time of the working file. * * On success, return 0. On error return -1. */ static int ! checkin_mtimedate(struct checkin_params *pb) { struct stat sb; if (stat(pb->filename, &sb) != 0) {