config-win32.h: comments adjustments - followup
[platform/upstream/c-ares.git] / ares_cancel.c
index 982ebc1..eb790ae 100644 (file)
@@ -1,4 +1,3 @@
-/* $Id$ */
 
 /* Copyright (C) 2004 by Daniel Stenberg et al
  *
@@ -13,7 +12,7 @@
  * without express or implied warranty.
  */
 
-#include "setup.h"
+#include "ares_setup.h"
 #include <assert.h>
 #include <stdlib.h>
 #include "ares.h"
@@ -36,7 +35,7 @@ void ares_cancel(ares_channel channel)
   {
     query = list_node->data;
     list_node = list_node->next;  /* since we're deleting the query */
-    query->callback(query->arg, ARES_ETIMEOUT, 0, NULL, 0);
+    query->callback(query->arg, ARES_ECANCELLED, 0, NULL, 0);
     ares__free_query(query);
   }
 #ifndef NDEBUG