Mercurial > pt1.oyama
diff src/http.c @ 155:5d010d0ff6a1
Change line number of the CSV file to be used for ID management.
author | Naoya OYAMA <naoya.oyama@gmail.com> |
---|---|
date | Sun, 02 Sep 2012 20:52:45 +0900 |
parents | e040d91c5cc7 |
children | 726fe10d9e4a |
line wrap: on
line diff
--- a/src/http.c Sun Sep 02 16:38:43 2012 +0900 +++ b/src/http.c Sun Sep 02 20:52:45 2012 +0900 @@ -377,7 +377,7 @@ * get_file_stream()を呼び出しハンドラを返却する */ for (i=0; i < ut->channel_list->nr_channel; i++) { - if (!strcmp(entry->fullpath, ut->channel_list->channel_info[i]->sid)) { + if (atoi(entry->fullpath) == ut->channel_list->channel_info[i]->id) { ut->sid = ut->channel_list->channel_info[i]->sid; ut->tp = ut->channel_list->channel_info[i]->tp; return get_file_stream (ut->sid, tdata);