diff options
Diffstat (limited to 'contrib/cvs/src/vers_ts.c')
-rw-r--r-- | contrib/cvs/src/vers_ts.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/contrib/cvs/src/vers_ts.c b/contrib/cvs/src/vers_ts.c index 9f71218..8ad9c4e 100644 --- a/contrib/cvs/src/vers_ts.c +++ b/contrib/cvs/src/vers_ts.c @@ -9,9 +9,11 @@ #include "cvs.h" #ifdef SERVER_SUPPORT -static void time_stamp_server PROTO((char *, Vers_TS *, Entnode *)); +static void time_stamp_server PROTO((const char *, Vers_TS *, Entnode *)); #endif + + /* Fill in and return a Vers_TS structure for the file FINFO. TAG and DATE are from the command line. */ @@ -55,13 +57,13 @@ Version_TS (finfo, options, tag, date, force_tag_match, set_time) else { p = findnode_fn (finfo->entries, finfo->file); - sdtp = (struct stickydirtag *) finfo->entries->list->data; /* list-private */ + sdtp = finfo->entries->list->data; /* list-private */ } entdata = NULL; if (p != NULL) { - entdata = (Entnode *) p->data; + entdata = p->data; if (entdata->type == ENT_SUBDIR) { @@ -204,11 +206,10 @@ Version_TS (finfo, options, tag, date, force_tag_match, set_time) struct utimbuf t; memset (&t, 0, sizeof (t)); - t.modtime = - RCS_getrevtime (rcsdata, vers_ts->vn_rcs, 0, 0); + t.modtime = RCS_getrevtime (rcsdata, vers_ts->vn_rcs, 0, 0); if (t.modtime != (time_t) -1) { - t.actime = t.modtime; + (void) time (&t.actime); #ifdef UTIME_EXPECTS_WRITABLE if (!iswritable (finfo->file)) @@ -226,7 +227,7 @@ Version_TS (finfo, options, tag, date, force_tag_match, set_time) (void) utime (finfo->file, &t); #ifdef UTIME_EXPECTS_WRITABLE - if (change_it_back == 1) + if (change_it_back) { xchmod (finfo->file, 0); change_it_back = 0; @@ -261,7 +262,7 @@ Version_TS (finfo, options, tag, date, force_tag_match, set_time) static void time_stamp_server (file, vers_ts, entdata) - char *file; + const char *file; Vers_TS *vers_ts; Entnode *entdata; { @@ -327,7 +328,7 @@ time_stamp_server (file, vers_ts, entdata) */ char * time_stamp (file) - char *file; + const char *file; { struct stat sb; char *cp; |