summaryrefslogtreecommitdiffstats
path: root/domain2name.c
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-06-28 20:08:14 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2022-06-28 20:08:14 +0200
commit3a74272a201cdfa3fd3992200d43f8f5ef34974a (patch)
tree72347531416db2251e43fca48c8d8672509ac658 /domain2name.c
parentsome changes I made on another laptop (diff)
downloadircxmpp-master.tar
ircxmpp-master.tar.gz
ircxmpp-master.tar.bz2
ircxmpp-master.tar.lz
ircxmpp-master.tar.xz
ircxmpp-master.tar.zst
ircxmpp-master.zip
Diffstat (limited to 'domain2name.c')
-rw-r--r--domain2name.c2
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;