summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-03-07 21:50:45 +0100
committerUoti Urpala <uau@mplayer2.org>2011-04-20 04:22:53 +0300
commit52743acba37451121d0820150694d13e2f660774 (patch)
treef9d924293f242bd969df4e19f3e5f56fc689d8e4 /stream
parentb17a1cf70c2666c0f8ea020c37350b178c62fc1a (diff)
downloadmpv-52743acba37451121d0820150694d13e2f660774.tar.bz2
mpv-52743acba37451121d0820150694d13e2f660774.tar.xz
cleanup: avoid various GCC warnings
Diffstat (limited to 'stream')
-rw-r--r--stream/pnm.c2
-rw-r--r--stream/stream_smb.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/stream/pnm.c b/stream/pnm.c
index 40da142b33..14ffa5d1c1 100644
--- a/stream/pnm.c
+++ b/stream/pnm.c
@@ -503,7 +503,7 @@ static int pnm_get_headers(pnm_t *p, int *need_response) {
uint8_t *ptr=p->header;
uint8_t *prop_hdr=NULL;
int chunk_size,size=0;
- int nr;
+ int nr = 0;
/* rmff_header_t *h; */
*need_response=0;
diff --git a/stream/stream_smb.c b/stream/stream_smb.c
index 684940749f..14791a2995 100644
--- a/stream/stream_smb.c
+++ b/stream/stream_smb.c
@@ -109,7 +109,6 @@ static void close_f(stream_t *s){
}
static int open_f (stream_t *stream, int mode, void *opts, int* file_format) {
- struct stream_priv_s *p = (struct stream_priv_s*)opts;
char *filename;
mode_t m = 0;
off_t len;