[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coldsync-hackers] Installing newer database from .palm/install
On second thought (when playing with an implementation), it seems
complicated to make a generic decision for when to overwrite based on
mtime/ctime. Simplest to stick with the modnum only. Or maybe:
if (newfile->mtime laterthan oldfile->mtime) ||
((newfile->mtime == oldfile->mtime) && (newfile->modnum > oldfile->modnum))
{install newfile}
or should it be the ctimes that are compared?
BTW, is there a function to compare struct dlp_time and udword? (For
the laterthan operator).
/Micce
--
Mikael Hedin, MSc +46 (0)980 79176
Swedish Institute of Space Physics +46 (0)8 344979 (home)
Box 812, S-981 28 KIRUNA, Sweden +46 (0)70 5891533 (mobile)
[gpg key fingerprint = 387F A8DB DC2A 50E3 FE26 30C4 5793 29D3 C01B 2A22]
--
This message was sent through the coldsync-hackers mailing list. To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body. For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.