diff options
Diffstat (limited to 'domain2name.c')
-rw-r--r-- | domain2name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/domain2name.c b/domain2name.c index 47bfdad..9faaf3e 100644 --- a/domain2name.c +++ b/domain2name.c @@ -39,7 +39,7 @@ int domain2name (char * n /* at least _len bytes */, const char * s, int l) { /* } *w++ = '\0'; /* luckily this makes domain2name kind of safe for handling as a string (: */ return w-n; /* we return number of bytes written */ -} /* no compression, it's 2022, net bandwidth is unlimited. n2d OFC does decompress ptrs acc2 std. */ +} __attribute__((nonnull)) int name2domain_len (const char * u, int s /* size of u */, const char * n /* name */) { #define N2DO(x) (ntohs(x) & ~(1 << 15 | 1 << 14)) /* pointer offset */ int r = 0; |