changeset 135:1d343a4eb657

modify function prototype. remove unused variable.
author Naoya OYAMA <naoya.oyama@gmail.com>
date Sun, 24 Oct 2010 21:50:50 +0900
parents c4e0a5777363
children 2a9ac5ce2c7e
files src/http.c src/recpt1.h
diffstat 2 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/http.c	Mon Oct 18 03:56:39 2010 +0900
+++ b/src/http.c	Sun Oct 24 21:50:50 2010 +0900
@@ -97,12 +97,9 @@
 {
     extern struct ushare_t *ut;
     struct upnp_entry_t *entry = NULL;
-    struct stat st;
     int upnp_id = 0;
     char *content_type = NULL;
     char *protocol = NULL;
-    extern thread_data *gp_tdata;
-    thread_data *tdata = gp_tdata;
 
     if (!filename || !info)
         return -1;
@@ -392,8 +389,6 @@
 {
     struct web_file_t *file = (struct web_file_t *) fh;
     ssize_t len = -1;
-    extern thread_data *gp_tdata;
-    thread_data *tdata = gp_tdata;
 
     //log_verbose ("http_read file:[%s]\n", file->fullpath);
 
@@ -537,9 +532,7 @@
     extern thread_data *gp_tdata;
     thread_data *tdata = gp_tdata;
     STREAM_QUEUE_T *p_queue;
-    int i;
     int id = 0;
-    int j;
 
     if (!file)
         return -1;
--- a/src/recpt1.h	Mon Oct 18 03:56:39 2010 +0900
+++ b/src/recpt1.h	Sun Oct 24 21:50:50 2010 +0900
@@ -101,7 +101,8 @@
 } thread_data;
 
 QUEUE_T *create_queue(size_t size);
-BUFSZ * dequeue(QUEUE_T *p_queue);
+BUFSZ *dequeue(QUEUE_T *p_queue);
+ARIB_STD_B25_BUFFER *stream_dequeue(STREAM_QUEUE_T *p_queue);
 void destroy_queue(QUEUE_T *p_queue);
 void destroy_stream_queue(STREAM_QUEUE_T *p_queue);