[ispykee] r5 committed - Fix more code errors.

6 views
Skip to first unread message

isp...@googlecode.com

unread,
Sep 6, 2010, 8:47:42 AM9/6/10
to isp...@googlegroups.com
Revision: 5
Author: pe...@hungry.com
Date: Mon Sep 6 05:47:16 2010
Log: Fix more code errors.
http://code.google.com/p/ispykee/source/detail?r=5

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

Reply all
Reply to author
Forward
0 new messages