From 0457119acb36b89b6f2f4534fe8ad94b19540bbd Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 2 Dec 2022 12:18:57 +0800 Subject: Refactor --- tsocket.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tsocket.c') diff --git a/tsocket.c b/tsocket.c index d1d0368..76e6064 100644 --- a/tsocket.c +++ b/tsocket.c @@ -5,8 +5,7 @@ #include "tsocket.h" -struct tsocket * -tsocketNew() +struct tsocket *tsocketNew() { int fd = socket(AF_INET, SOCK_STREAM, 0); if (fd == -1) -- cgit v1.2.3