summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpranomostro <pranomestro@gmail.com>2016-12-02 11:08:37 +0100
committerpranomostro <pranomestro@gmail.com>2016-12-02 11:08:37 +0100
commitf008567f6d674c99b618fa87509152f73783bc44 (patch)
tree16e18febf80f6ef92f46ced172191cacb6a8d3d9
parent07ad69d6b12ed907301a43e23024531e2f528b1f (diff)
parente00b398d645a019eefb65be0c01e3b3cb7f15f9d (diff)
Merge branch 'toktok' of git.z3bra.org:ratox into toktok
Fix amend commit.
-rw-r--r--ratox.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ratox.c b/ratox.c
index 36a98cf..266524e 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>
@@ -1364,7 +1362,7 @@ confcreate(uint32_t cnum)
if(!c)
eprintf("calloc:");
c->num = cnum;
- sprintf(c->numstr, "%08X", ntohl(c->num));
+ sprintf(c->numstr, "%08X", c->num);
r = mkdir(c->numstr, 0777);
if(r < 0 && errno != EEXIST)
eprintf("mkdir %s:", c->numstr);