Modified:
/trunk/spykee.c
=======================================
--- /trunk/spykee.c Mon Sep 6 05:38:04 2010
+++ /trunk/spykee.c Mon Sep 6 05:47:16 2010
@@ -813,7 +813,7 @@
}
} else if ((surveillance || video_capture) && !docked) {
t = time((time_t *)0);
- fprintf(stderr, "Disconnected Spykee timer: t:%d last_video:%d\n", t,
last_video);
+ fprintf(stderr, "Disconnected Spykee timer: t:%ld last_video:%ld\n",
(long)t, (long)last_video);
if ((t - last_video) >= 2) {
if (connect_spykee(spykee_ip, port, uname, pw) < 0) {
fprintf(stderr, "connect to spykee failed\n");
@@ -1367,7 +1367,7 @@
// Spykee discovery - find the IP address of Spykee on the LAN
-char *dscv_spykee()
+char *dscv_spykee(void)
{
int sockfd;
int broadcast=1;
@@ -1472,13 +1472,13 @@
return (char *)0;
}
-void usage()
+void usage(void)
{
fprintf(stderr, "usage: spykee [-v] [-s snapshot_dir ] [-m motion_dir]
[-p server] [-i spykee_ip ] username password botname bot_password\n");
exit(1);
}
-main(int argc, char **argv)
+int main(int argc, char **argv)
{
int ch;
#ifdef WINSOCK