Skip to content

Commit

Permalink
remove unnecessary typecast, otherwise triggering compiler warning:
Browse files Browse the repository at this point in the history
dereferencing type-punned pointer will break strict-aliasing rules
  • Loading branch information
yangtse committed Sep 30, 2008
1 parent d3fdbe4 commit 91bc396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Expand Up @@ -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);

Expand Down

0 comments on commit 91bc396

Please sign in to comment.