From b914e7ed02d7e69cfcc47e8a3f47eaaaf111b4cb Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 22 Feb 2014 18:57:02 +0000 Subject: tool_operate: Start to use CURLcode rather than int for return codes To help assist with the detection of incorrect return codes, as per commits ee23d13a79, 33b8960dc8 and aba98991a5, updated the operate based functions to return CURLcode error codes. --- src/tool_operate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tool_operate.h') diff --git a/src/tool_operate.h b/src/tool_operate.h index 5a0a4a06b..01c5fd42b 100644 --- a/src/tool_operate.h +++ b/src/tool_operate.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2012, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2014, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -23,7 +23,7 @@ ***************************************************************************/ #include "tool_setup.h" -int operate(struct Configurable *config, int argc, argv_item_t argv[]); +CURLcode operate(struct Configurable *config, int argc, argv_item_t argv[]); #endif /* HEADER_CURL_TOOL_OPERATE_H */ -- cgit v1.2.3