summaryrefslogtreecommitdiff
path: root/lib/util.c
Commit message (Collapse)AuthorAgeFilesLines
* Use malloc+memcpy rather than calloc+strcpy in rs_strdup.Linus Nordberg2013-05-101-5/+9
| | | | | | | For effiency (but triggered by calloc needing unistd.h on Darwin). Conflicts: lib/util.c
* Revamping for listeners.Linus Nordberg2013-03-011-4/+5
| | | | | | | | | | | | | | Split rs_connection into rs_baseconn plus rs_connection and rs_listener. Connections now has a state variable. Connect buffer event and fd of _source_ connection, not that of conn->active_peer. The connection object referred to by a peer is not meant for using as a connection, only for reporting errors on. Make sure things are sane even when not using a config file. Bump library interface version to 1.0.0 since it's changed.
* Rename COPYING -> LICENSE.Linus Nordberg2012-12-191-1/+1
| | | | And distribute LICENSE and HACKING.
* Add util.h and util.c.Linus Nordberg2012-04-261-0/+19