]> granicus.if.org Git - curl/commitdiff
tool_formparse.c: fix compiler warning: enumerated type mixed with another type
authorYang Tse <yangsita@gmail.com>
Mon, 2 Jan 2012 18:31:02 +0000 (19:31 +0100)
committerYang Tse <yangsita@gmail.com>
Wed, 4 Jan 2012 18:11:55 +0000 (19:11 +0100)
src/tool_formparse.c

index ff2210ac8baa8acdf6ddddebc328315721bda2d7..248c89ce7adf0d0f22e3437c24d969fc2260dd8a 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -130,7 +130,7 @@ int formparse(struct Configurable *config,
         type = NULL;
 
         if(sep) {
-          bool semicolon = (';' == *sep);
+          bool semicolon = (';' == *sep) ? TRUE : FALSE;
 
           *sep = '\0'; /* terminate file name at separator */