refactor(socket/mime): change function sign
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
#include <myclib/mystring.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
size_t cws_socket_read(int sockfd, string_s *str);
|
||||
ssize_t cws_socket_read(int sockfd, string_s *str);
|
||||
|
||||
size_t cws_socket_send(int sockfd, char *buffer, size_t len, int flags);
|
||||
ssize_t cws_socket_send(int sockfd, const char *buffer, size_t len, int flags);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -8,9 +8,7 @@ typedef struct mimetype {
|
||||
const char *type;
|
||||
} mimetype;
|
||||
|
||||
/*
|
||||
* Retrieve Content Type
|
||||
*/
|
||||
/* Retrieve Content Type */
|
||||
int cws_mime_get_ct(const char *location_path, char *content_type);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user