]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
remove unnecessary typecast, otherwise triggering compiler warning:
authorYang Tse <yangsita@gmail.com>
Tue, 30 Sep 2008 18:59:02 +0000 (18:59 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 30 Sep 2008 18:59:02 +0000 (18:59 +0000)
dereferencing type-punned pointer will break strict-aliasing rules

src/main.c

index a85b16d6dd76c0020517c018610552feb52bf917..e90cb362941be03a7f3a67bdc9c1f6fc4e24ca99 100644 (file)
@@ -4500,7 +4500,7 @@ operate(struct Configurable *config, int argc, argv_item_t argv[])
           my_setopt(curl, CURLOPT_TCP_NODELAY, 1);
 
         /* where to store */
-        my_setopt(curl, CURLOPT_WRITEDATA, (FILE *)&outs);
+        my_setopt(curl, CURLOPT_WRITEDATA, &outs);
         /* what call to write */
         my_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);