diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2022-06-28 20:08:14 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2022-06-28 20:08:14 +0200 |
commit | 3a74272a201cdfa3fd3992200d43f8f5ef34974a (patch) | |
tree | 72347531416db2251e43fca48c8d8672509ac658 /domain2name.c | |
parent | some changes I made on another laptop (diff) | |
download | ircxmpp-3a74272a201cdfa3fd3992200d43f8f5ef34974a.tar ircxmpp-3a74272a201cdfa3fd3992200d43f8f5ef34974a.tar.gz ircxmpp-3a74272a201cdfa3fd3992200d43f8f5ef34974a.tar.bz2 ircxmpp-3a74272a201cdfa3fd3992200d43f8f5ef34974a.tar.lz ircxmpp-3a74272a201cdfa3fd3992200d43f8f5ef34974a.tar.xz ircxmpp-3a74272a201cdfa3fd3992200d43f8f5ef34974a.tar.zst ircxmpp-3a74272a201cdfa3fd3992200d43f8f5ef34974a.zip |
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; |