diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2014-06-01 22:42:46 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2014-06-01 22:42:46 +0000 |
commit | de2df71f5ba61f19759640a70af2003091b306af (patch) | |
tree | 0da09634fca81fae131d9f98eab8fc990c0906a1 /lib/libevent | |
parent | 86645e8cac011c676064caad15721309014622f0 (diff) |
Clean up some of the nightmare of string and pointer arithmatic in
this nasty function.
This gets rid of the nasty tmp variables used to hold temporary strings
and the DECIMAL_SIZE hack. it gets rid of the rather pointless null checks
for buf (since the original code dereferences it before checking). It also
gets rid of the insane possibility this could return -1 when stuff is
using the return values to compute lengths All the failure cases now
return 0 and an empty string like the first error case in the original
code.
ok miod@ tedu@
Diffstat (limited to 'lib/libevent')
0 files changed, 0 insertions, 0 deletions