libuhttpd: New API
int uh_server_open(const char *host, int port); void uh_server_init(struct uh_server *srv, int sock); Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
1 parent
3920100e64
commit
dcb397a62c
3 files changed
+31
-13
No files matched your search
@@ -102,8 +102,10 @@ int main(int argc, char **argv)
|
||||
done:
|
||||
uloop_done();
|
||||
|
||||
if (srv)
|
||||
if (srv) {
|
||||
srv->free(srv);
|
||||
free(srv);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user