summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorpranomostro <pranomestro@gmail.com>2016-11-28 15:36:09 +0100
committerpranomostro <pranomestro@gmail.com>2016-11-28 15:36:09 +0100
commitcb904cf59e4c1650ce5109850822ce658b6ac439 (patch)
treeee28f6e4d6793929fd28af43ad6a628848253252 /ratox.c
parenteaf22dff1e5acc5eed22d18f3264e804e7b7262b (diff)
Remove converting nospam values because toxcore does that for us now.
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ratox.c b/ratox.c
index 070a5e1..7d6a5b1 100644
--- a/ratox.c
+++ b/ratox.c
@@ -3,8 +3,6 @@
#include <sys/stat.h>
#include <sys/types.h>
-#include <arpa/inet.h>
-
#include <ctype.h>
#include <dirent.h>
#include <errno.h>
@@ -1119,7 +1117,7 @@ localinit(void)
/* Dump Nospam */
ftruncate(gslots[NOSPAM].fd[OUT], 0);
- dprintf(gslots[NOSPAM].fd[OUT], "%08X\n", ntohl(tox_self_get_nospam(tox)));
+ dprintf(gslots[NOSPAM].fd[OUT], "%08X\n", tox_self_get_nospam(tox));
return 0;
}
@@ -1527,7 +1525,7 @@ setnospam(void *data)
}
nsval = strtoul((char *)nospam, NULL, 16);
- tox_self_set_nospam(tox, htonl(nsval));
+ tox_self_set_nospam(tox, nsval);
datasave();
logmsg("Nospam > %08X\n", nsval);
ftruncate(gslots[NOSPAM].fd[OUT], 0);