View | Details | Raw Unified | Return to bug 196184
Collapse All | Expand All

(-)src/eb.c (-7 / +10 lines)
Lines 674-680 Link Here
674
	EB_Error_Code error_code=EB_SUCCESS;
674
	EB_Error_Code error_code=EB_SUCCESS;
675
	EB_Position text_position;
675
	EB_Position text_position;
676
	char data[EB_SIZE_PAGE+4];
676
	char data[EB_SIZE_PAGE+4];
677
	int i, length;
677
	int i;
678
	ssize_t length;
678
679
679
	int start_page;
680
	int start_page;
680
	int end_page;
681
	int end_page;
Lines 856-862 Link Here
856
	char data[EB_SIZE_PAGE];
857
	char data[EB_SIZE_PAGE];
857
	char *jisword;
858
	char *jisword;
858
	char *word_p;
859
	char *word_p;
859
	int i, length;
860
	int i;
861
	ssize_t length;
860
	char *p;
862
	char *p;
861
	char heading[MAXLEN_TEXT + 1];
863
	char heading[MAXLEN_TEXT + 1];
862
	RESULT *rp;
864
	RESULT *rp;
Lines 1053-1059 Link Here
1053
	char data[EB_SIZE_PAGE];
1055
	char data[EB_SIZE_PAGE];
1054
	char *jisword;
1056
	char *jisword;
1055
	char *word_p;
1057
	char *word_p;
1056
	int length;
1058
	ssize_t length;
1057
	char *p;
1059
	char *p;
1058
	char heading[MAXLEN_TEXT + 1];
1060
	char heading[MAXLEN_TEXT + 1];
1059
	RESULT *rp;
1061
	RESULT *rp;
Lines 1679-1685 Link Here
1679
gint ebook_simple_search2(BOOK_INFO *binfo, char *word, gint method, gchar *title)
1681
gint ebook_simple_search2(BOOK_INFO *binfo, char *word, gint method, gchar *title)
1680
{
1682
{
1681
	EB_Error_Code error_code=EB_SUCCESS;
1683
	EB_Error_Code error_code=EB_SUCCESS;
1682
	int i, len, total_hits=0;
1684
	int i, total_hits=0;
1685
        ssize_t len;
1683
	EB_Hit hits[MAX_HITS];
1686
	EB_Hit hits[MAX_HITS];
1684
	int hitcount;
1687
	int hitcount;
1685
	char heading[MAXLEN_HEADING + 1];
1688
	char heading[MAXLEN_HEADING + 1];
Lines 1988-1994 Link Here
1988
gchar *ebook_get_heading(BOOK_INFO *binfo, int page, int offset)
1991
gchar *ebook_get_heading(BOOK_INFO *binfo, int page, int offset)
1989
{
1992
{
1990
	EB_Error_Code error_code;
1993
	EB_Error_Code error_code;
1991
	int len;
1994
	ssize_t len;
1992
	char heading[MAXLEN_HEADING + 1];
1995
	char heading[MAXLEN_HEADING + 1];
1993
	EB_Position position;
1996
	EB_Position position;
1994
	gchar *p;
1997
	gchar *p;
Lines 2021-2027 Link Here
2021
2024
2022
gchar *ebook_get_text(BOOK_INFO *binfo, int page, int offset){
2025
gchar *ebook_get_text(BOOK_INFO *binfo, int page, int offset){
2023
	EB_Error_Code error_code;
2026
	EB_Error_Code error_code;
2024
	int len;
2027
	ssize_t len;
2025
	char text[MAXLEN_TEXT + 1];
2028
	char text[MAXLEN_TEXT + 1];
2026
	EB_Position position;
2029
	EB_Position position;
2027
	gchar *p;
2030
	gchar *p;
Lines 2064-2070 Link Here
2064
gchar *ebook_get_candidate(BOOK_INFO *binfo, int page, int offset)
2067
gchar *ebook_get_candidate(BOOK_INFO *binfo, int page, int offset)
2065
{
2068
{
2066
	EB_Error_Code error_code;
2069
	EB_Error_Code error_code;
2067
	int len;
2070
	ssize_t len;
2068
	char text[MAXLEN_TEXT + 1];
2071
	char text[MAXLEN_TEXT + 1];
2069
	EB_Position position;
2072
	EB_Position position;
2070
	gchar *p;
2073
	gchar *p;

Return to bug 196184