Revision: 423
http://vde.svn.sourceforge.net/vde/?rev=423&view=rev
Author: shammash
Date: 2010-06-28 00:06:06 +0000 (Mon, 28 Jun 2010)
Log Message:
-----------
Fix a few more compile-time warnings
Now only this warning is left, which requires a launchd porting (does it work
even for unprivileged users?)
warning: ?\226?\128?\152daemon?\226?\128?\153 is deprecated (declared at
/usr/include/stdlib.h:283)
Signed-off-by: Luca Bigliardi <[email protected]>
Modified Paths:
--------------
trunk/vde-2/src/lib/libvdehist.c
trunk/vde-2/src/slirpvde/slirpvde.c
trunk/vde-2/src/vde_pcapplug.c
trunk/vde-2/src/vde_plug.c
trunk/vde-2/src/vde_plug2tap.c
trunk/vde-2/src/vdeq.c
trunk/vde-2/src/vdeterm.c
Modified: trunk/vde-2/src/lib/libvdehist.c
===================================================================
--- trunk/vde-2/src/lib/libvdehist.c 2010-06-27 23:32:10 UTC (rev 422)
+++ trunk/vde-2/src/lib/libvdehist.c 2010-06-28 00:06:06 UTC (rev 423)
@@ -26,6 +26,8 @@
#include <poll.h>
#include <arpa/telnet.h>
+#include <vdecommon.h>
+
#define BUFSIZE 1024
#define HISTORYSIZE 32
Modified: trunk/vde-2/src/slirpvde/slirpvde.c
===================================================================
--- trunk/vde-2/src/slirpvde/slirpvde.c 2010-06-27 23:32:10 UTC (rev 422)
+++ trunk/vde-2/src/slirpvde/slirpvde.c 2010-06-28 00:06:06 UTC (rev 423)
@@ -411,7 +411,7 @@
break;
case 'N' : inet_aton(optarg,&vnameserver);
break;
- case 'm' : sscanf(optarg,"%o",&(open_args.mode));
+ case 'm' : sscanf(optarg,"%o",(unsigned int
*)&(open_args.mode));
break;
case 'g' : open_args.group=strdup(optarg);
break;
Modified: trunk/vde-2/src/vde_pcapplug.c
===================================================================
--- trunk/vde-2/src/vde_pcapplug.c 2010-06-27 23:32:10 UTC (rev 422)
+++ trunk/vde-2/src/vde_pcapplug.c 2010-06-28 00:06:06 UTC (rev 423)
@@ -297,7 +297,7 @@
break;
case 'm':
- sscanf(optarg,"%o",&(open_args.mode));
+ sscanf(optarg,"%o",(unsigned int
*)&(open_args.mode));
break;
case 'g':
Modified: trunk/vde-2/src/vde_plug.c
===================================================================
--- trunk/vde-2/src/vde_plug.c 2010-06-27 23:32:10 UTC (rev 422)
+++ trunk/vde-2/src/vde_plug.c 2010-06-28 00:06:06 UTC (rev 423)
@@ -345,7 +345,7 @@
break;
case 'm':
- sscanf(optarg,"%o",&(open_args.mode));
+ sscanf(optarg,"%o",(unsigned int
*)&(open_args.mode));
break;
case 'g':
Modified: trunk/vde-2/src/vde_plug2tap.c
===================================================================
--- trunk/vde-2/src/vde_plug2tap.c 2010-06-27 23:32:10 UTC (rev 422)
+++ trunk/vde-2/src/vde_plug2tap.c 2010-06-28 00:06:06 UTC (rev 423)
@@ -272,7 +272,7 @@
break;
case 'm':
- sscanf(optarg,"%o",&(open_args.mode));
+ sscanf(optarg,"%o",(unsigned int
*)&(open_args.mode));
break;
case 'g':
Modified: trunk/vde-2/src/vdeq.c
===================================================================
--- trunk/vde-2/src/vdeq.c 2010-06-27 23:32:10 UTC (rev 422)
+++ trunk/vde-2/src/vdeq.c 2010-06-28 00:06:06 UTC (rev 423)
@@ -346,7 +346,7 @@
if (argc > 2 && ((strcmp(argv[1],"--mod")==0))
){
- sscanf(argv[2],"%o",&mode);
+ sscanf(argv[2],"%o",(unsigned int *)&mode);
argv+=2;
argc-=2;
}
Modified: trunk/vde-2/src/vdeterm.c
===================================================================
--- trunk/vde-2/src/vdeterm.c 2010-06-27 23:32:10 UTC (rev 422)
+++ trunk/vde-2/src/vdeterm.c 2010-06-28 00:06:06 UTC (rev 423)
@@ -6,6 +6,7 @@
#define _GNU_SOURCE
#include <stdio.h>
+#include <string.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
vde-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vde-users