On Thu, Oct 12, 2000 at 07:15:59PM -0500, Dwight D. McKay wrote: > The only thing missing now from PilotManager (which I used to use) is a time > sync conduit. Is there one out there? I tried to write a conduit for this one a couple of months ago (and failed miserably :)... Now I feel a real fool. Attached is a patch to sync the time, although it *should* be an option. (Can't get a much simpler patch :-) mibus -- Robert Mibus <mibus bigpond com> 186,282 Miles per Second. It's not just a good idea. IT'S THE LAW.
--- gpilotd.c.orig Mon Aug 7 10:32:18 2000
+++ gpilotd.c Tue Oct 17 02:07:33 2000
@@ -38,6 +38,7 @@
#include "manager.h"
#include <libgnome/libgnome.h>
#include <string.h>
+#include <time.h>
#include <gpilot-userinfo.h>
#include <gpilot-structures.h>
#include <unistd.h>
@@ -421,6 +422,7 @@
g_warning(_("An error occured while getting the pilot's user data"));
pilot_disconnect (pfd);
} else {
+ dlp_SetSysDateTime (pfd, time(NULL));
/* If there are cradle specific events, handle them and stop */
if (do_cradle_events (pfd,context,&pu,pilot,device)) {
g_message(_("Completed events for cradle %s (%s)"),device->name,device->port);
Attachment:
pgpriYfEJ6DT5.pgp
Description: PGP signature