projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Double-quote node names in dump graph output.
[tinc]
/
src
/
dummy_device.c
diff --git
a/src/dummy_device.c
b/src/dummy_device.c
index
c43d586
..
15f0654
100644
(file)
--- a/
src/dummy_device.c
+++ b/
src/dummy_device.c
@@
-22,12
+22,13
@@
#include "device.h"
#include "logger.h"
#include "net.h"
#include "device.h"
#include "logger.h"
#include "net.h"
+#include "xalloc.h"
-static char *device_info = "dummy device";
+static c
onst c
har *device_info = "dummy device";
static bool setup_device(void) {
static bool setup_device(void) {
- device =
"dummy"
;
- iface =
"dummy"
;
+ device =
xstrdup("dummy")
;
+ iface =
xstrdup("dummy")
;
logger(DEBUG_ALWAYS, LOG_INFO, "%s (%s) is a %s", device, iface, device_info);
return true;
}
logger(DEBUG_ALWAYS, LOG_INFO, "%s (%s) is a %s", device, iface, device_info);
return true;
}
@@
-36,10
+37,12
@@
static void close_device(void) {
}
static bool read_packet(vpn_packet_t *packet) {
}
static bool read_packet(vpn_packet_t *packet) {
+ (void)packet;
return false;
}
static bool write_packet(vpn_packet_t *packet) {
return false;
}
static bool write_packet(vpn_packet_t *packet) {
+ (void)packet;
return true;
}
return true;
}