comparison http.c @ 683:095009fc2f35 libavformat

kill warnings patch by (M?ns Rullg?rd <mru inprovide com>)
author michael
date Thu, 24 Feb 2005 19:08:50 +0000
parents 0b52743104ac
children da1d5db0ce5c
comparison
equal deleted inserted replaced
682:decfffe703bc 683:095009fc2f35
47 } HTTPContext; 47 } HTTPContext;
48 48
49 static int http_connect(URLContext *h, const char *path, const char *hoststr, 49 static int http_connect(URLContext *h, const char *path, const char *hoststr,
50 const char *auth); 50 const char *auth);
51 static int http_write(URLContext *h, uint8_t *buf, int size); 51 static int http_write(URLContext *h, uint8_t *buf, int size);
52 static char *b64_encode( unsigned char *src ); 52 static char *b64_encode(const unsigned char *src );
53 53
54 54
55 /* return non zero if error */ 55 /* return non zero if error */
56 static int http_open(URLContext *h, const char *uri, int flags) 56 static int http_open(URLContext *h, const char *uri, int flags)
57 { 57 {
285 285
286 /***************************************************************************** 286 /*****************************************************************************
287 * b64_encode: stolen from VLC's http.c 287 * b64_encode: stolen from VLC's http.c
288 *****************************************************************************/ 288 *****************************************************************************/
289 289
290 static char *b64_encode( unsigned char *src ) 290 static char *b64_encode( const unsigned char *src )
291 { 291 {
292 static const char b64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; 292 static const char b64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
293 unsigned int len= strlen(src); 293 unsigned int len= strlen(src);
294 char *ret, *dst; 294 char *ret, *dst;
295 unsigned i_bits = 0; 295 unsigned i_bits = 0;