mirror of
https://github.com/curl/curl.git
synced 2026-08-26 03:03:36 +03:00
Dan Fandrich's cleanup patch to make pedantic compiler options cause less
warnings. Minor edits by me.
This commit is contained in:
parent
0d6236f7e1
commit
4d17d6876e
29 changed files with 103 additions and 85 deletions
|
|
@ -49,7 +49,7 @@ void curl_memdebug(const char *logname);
|
|||
void curl_memlimit(long limit);
|
||||
|
||||
/* file descriptor manipulators */
|
||||
int curl_socket(int domain, int type, int protocol, int, const char *);
|
||||
int curl_socket(int domain, int type, int protocol, int line , const char *);
|
||||
int curl_sclose(int sockfd, int, const char *source);
|
||||
int curl_accept(int s, struct sockaddr *addr, socklen_t *addrlen,
|
||||
int line, const char *source);
|
||||
|
|
@ -59,6 +59,8 @@ FILE *curl_fopen(const char *file, const char *mode, int line,
|
|||
const char *source);
|
||||
int curl_fclose(FILE *file, int line, const char *source);
|
||||
|
||||
#ifndef MEMDEBUG_NODEFINES
|
||||
|
||||
/* Set this symbol on the command-line, recompile all lib-sources */
|
||||
#undef strdup
|
||||
#define strdup(ptr) curl_dostrdup(ptr, __LINE__, __FILE__)
|
||||
|
|
@ -84,4 +86,6 @@ int curl_fclose(FILE *file, int line, const char *source);
|
|||
#define fopen(file,mode) curl_fopen(file,mode,__LINE__,__FILE__)
|
||||
#define fclose(file) curl_fclose(file,__LINE__,__FILE__)
|
||||
|
||||
#endif /* MEMDEBUG_NODEFINES */
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue