aboutsummaryrefslogtreecommitdiff
path: root/dpid/dpidc.c
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2013-01-09 12:47:23 -0300
committerJorge Arellano Cid <jcid@dillo.org>2013-01-09 12:47:23 -0300
commitcbba835b154ba31e7a07ba1b15a06b8953eb7e72 (patch)
tree8ea8ad0b67ba6a2f8a789f9e61ea4f80d0c20d35 /dpid/dpidc.c
parentd236210c1608952b7910123fbede108317a80444 (diff)
Refactored FD close calls into a single new dClose() dlib function [p37sitdu]
Diffstat (limited to 'dpid/dpidc.c')
-rw-r--r--dpid/dpidc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dpid/dpidc.c b/dpid/dpidc.c
index 61a91275..58db9c3c 100644
--- a/dpid/dpidc.c
+++ b/dpid/dpidc.c
@@ -9,6 +9,7 @@
#include <netdb.h>
#include <errno.h>
+#include "../dlib/dlib.h"
#include "../dpip/dpip.h"
#define MSG_ERR(...) printf("** ERROR **: " __VA_ARGS__);
@@ -116,6 +117,6 @@ int main(int argc, char *argv[])
error("ERROR reading from socket");
printf("%s\n",buffer);
*/
- close(sockfd);
+ dClose(sockfd);
return 0;
}