comparison 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
comparison
equal deleted inserted replaced
154:578ebda88997 155:5d010d0ff6a1
375 /* 375 /*
376 * 1. http_open() $B$G$O(B entry $B$,%9%H%j!<%`:F@8MQ$N$b$N$G$"$k>l9g$K!"(B 376 * 1. http_open() $B$G$O(B entry $B$,%9%H%j!<%`:F@8MQ$N$b$N$G$"$k>l9g$K!"(B
377 * get_file_stream()$B$r8F$S=P$7%O%s%I%i$rJV5Q$9$k(B 377 * get_file_stream()$B$r8F$S=P$7%O%s%I%i$rJV5Q$9$k(B
378 */ 378 */
379 for (i=0; i < ut->channel_list->nr_channel; i++) { 379 for (i=0; i < ut->channel_list->nr_channel; i++) {
380 if (!strcmp(entry->fullpath, ut->channel_list->channel_info[i]->sid)) { 380 if (atoi(entry->fullpath) == ut->channel_list->channel_info[i]->id) {
381 ut->sid = ut->channel_list->channel_info[i]->sid; 381 ut->sid = ut->channel_list->channel_info[i]->sid;
382 ut->tp = ut->channel_list->channel_info[i]->tp; 382 ut->tp = ut->channel_list->channel_info[i]->tp;
383 return get_file_stream (ut->sid, tdata); 383 return get_file_stream (ut->sid, tdata);
384 } 384 }
385 } 385 }