projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hash table fix
[tinc]
/
src
/
info.c
diff --git
a/src/info.c
b/src/info.c
index
758c0d1
..
1649be0
100644
(file)
--- a/
src/info.c
+++ b/
src/info.c
@@
-20,12
+20,10
@@
#include "system.h"
#include "control_common.h"
#include "system.h"
#include "control_common.h"
-#include "list.h"
#include "subnet.h"
#include "tincctl.h"
#include "info.h"
#include "utils.h"
#include "subnet.h"
#include "tincctl.h"
#include "info.h"
#include "utils.h"
-#include "xalloc.h"
void logger(int level, int priority, const char *format, ...) {
(void)level;
void logger(int level, int priority, const char *format, ...) {
(void)level;
@@
-40,7
+38,7
@@
void logger(int level, int priority, const char *format, ...) {
}
char *strip_weight(char *netstr) {
}
char *strip_weight(char *netstr) {
-
in
t len = strlen(netstr);
+
size_
t len = strlen(netstr);
if(len >= 3 && !strcmp(netstr + len - 3, "#10")) {
netstr[len - 3] = 0;
if(len >= 3 && !strcmp(netstr + len - 3, "#10")) {
netstr[len - 3] = 0;