summaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-08-29 09:57:14 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-08-29 09:58:11 +0200
commit2f9b64ac33c577d6d9b737dbcbd23e9aad09dc95 (patch)
treeb69516ebdaf323f752466afc6bfb1a9e14639644 /lib/easy.c
parent6a353049ac94751d53e877c6b5f3c452d717cfe3 (diff)
downloadcurl-2f9b64ac33c577d6d9b737dbcbd23e9aad09dc95.tar.gz
easy: rename struct monitor to socketmonitor
'struct monitor', introduced in 6cf8413e, already exists in an IRIX header file (sys/mon.h) which gets included via various standard headers by lib/easy.c cc-1101 cc: ERROR File = ../../curl/lib/easy.c, Line = 458 "monitor" has already been declared in the current scope. Reported-by: Tor Arntsen
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 32a61a9f8..202d96151 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -455,8 +455,8 @@ CURLcode curl_easy_setopt(CURL *curl, CURLoption tag, ...)
#ifdef CURLDEBUG
-struct monitor {
- struct monitor *next; /* the next node in the list or NULL */
+struct socketmonitor {
+ struct socketmonitor *next; /* the next node in the list or NULL */
struct pollfd socket; /* socket info of what to monitor */
};
@@ -464,7 +464,7 @@ struct events {
long ms; /* timeout, run the timeout function when reached */
bool msbump; /* set TRUE when timeout is set by callback */
int num_sockets; /* number of nodes in the monitor list */
- struct monitor *list; /* list of sockets to monitor */
+ struct socketmonitor *list; /* list of sockets to monitor */
int running_handles; /* store the returned number */
};
@@ -538,8 +538,8 @@ static int events_socket(CURL *easy, /* easy handle */
pointer */
{
struct events *ev = userp;
- struct monitor *m;
- struct monitor *prev=NULL;
+ struct socketmonitor *m;
+ struct socketmonitor *prev=NULL;
(void)socketp;
m = ev->list;
@@ -547,7 +547,7 @@ static int events_socket(CURL *easy, /* easy handle */
if(m->socket.fd == s) {
if(what == CURL_POLL_REMOVE) {
- struct monitor *nxt = m->next;
+ struct socketmonitor *nxt = m->next;
/* remove this node from the list of monitored sockets */
if(prev)
prev->next = nxt;
@@ -578,7 +578,7 @@ static int events_socket(CURL *easy, /* easy handle */
__func__, s); */
}
else {
- m = malloc(sizeof(struct monitor));
+ m = malloc(sizeof(struct socketmonitor));
m->next = ev->list;
m->socket.fd = s;
m->socket.events = socketcb2poll(what);
@@ -624,7 +624,7 @@ static CURLcode wait_or_timeout(struct Curl_multi *multi, struct events *ev)
while(!done) {
CURLMsg *msg;
- struct monitor *m;
+ struct socketmonitor *m;
struct pollfd *f;
struct pollfd fds[4];
int numfds=0;