Historically, twscopy() assigned all the struct's members individually,
but that was `#if 0'd as far back as the repository goes. The one
caller now uses assignment, making clear the direction of data flow.
struct tws *dgmtime (time_t *);
char *dasctime (struct tws *, int);
char *dtimezone (int, int);
-void twscopy (struct tws *, struct tws *);
int twsort (struct tws *, struct tws *);
time_t dmktime (struct tws *);
void set_dotw (struct tws *);
}
-/*
- * Copy nmh time structure
- */
-
-void
-twscopy (struct tws *tb, struct tws *tw)
-{
- *tb = *tw; /* struct copy */
-}
-
-
/*
* Compare two nmh time structures
*/
if ((tw = tws_parse (ap, isafter)) == NULL)
return 0;
- twscopy (tb, tw);
+ *tb = *tw;
return 1;
}