changeset 35398:14aeceb6c267

stream ftp: Remove unneeded cast At worst these kind of casts can hide real errors. As it is, it is just not needed at all, thus remove it.
author al
date Mon, 26 Nov 2012 23:42:36 +0000
parents 0c18f01f65a5
children 4d7adee0a7ba
files stream/stream_ftp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_ftp.c	Mon Nov 26 23:39:56 2012 +0000
+++ b/stream/stream_ftp.c	Mon Nov 26 23:42:36 2012 +0000
@@ -413,7 +413,7 @@
 static int open_f(stream_t *stream,int mode, void* opts, av_unused int* file_format) {
   int resp;
   int64_t len = 0;
-  struct stream_priv_s* p = (struct stream_priv_s*)opts;
+  struct stream_priv_s* p = opts;
   char rsp_txt[256];
 
   if(mode != STREAM_READ) {