Browse Source

Renaming _ttail_file_search_from_end()

Yann Weber 8 years ago
parent
commit
e92e62046e
2 changed files with 4 additions and 4 deletions
  1. 1
    1
      src/include/ttail_search_files.h
  2. 3
    3
      src/ttail_search_files.c

+ 1
- 1
src/include/ttail_search_files.h View File

@@ -182,7 +182,7 @@ inline long _ttail_file_start_line(FILE*);
182 182
  *@return -1 on error else the offset of the line first chr
183 183
  *@todo checks
184 184
  */
185
-inline off_t _ttail_from_search_from_end(ttail_t*, size_t, const struct tm*);
185
+inline off_t _ttail_file_search_from_end(ttail_t*, size_t, const struct tm*);
186 186
 
187 187
 /**@brief Read a line from off and compare its date to tm
188 188
  *@param t ttail_t*

+ 3
- 3
src/ttail_search_files.c View File

@@ -268,7 +268,7 @@ int _ttail_search_files_binary_search(ttail_t* t, const struct tm* in,
268 268
 			/* found at EOF */
269 269
 			if(min)
270 270
 			{
271
-				*off = _ttail_from_search_from_end(t, *id, in);
271
+				*off = _ttail_file_search_from_end(t, *id, in);
272 272
 				if(*off < 0)
273 273
 				{
274 274
 					*off = 0;
@@ -343,7 +343,7 @@ running binary search algorithm in '%s'\n", t->logfile_name[*id]);
343 343
 		return 0;
344 344
 	}
345 345
 	/* the answer is somewhere in *id file */
346
-	*off = _ttail_from_search_from_end(t, *id, in);
346
+	*off = _ttail_file_search_from_end(t, *id, in);
347 347
 	return 0;
348 348
 }
349 349
 
@@ -721,7 +721,7 @@ inline long _ttail_file_start_line(FILE* f)
721 721
 	return res;
722 722
 }
723 723
 
724
-inline off_t _ttail_from_search_from_end(ttail_t* t , size_t id , 
724
+inline off_t _ttail_file_search_from_end(ttail_t* t , size_t id , 
725 725
 	const struct tm* tm)
726 726
 {
727 727
 	FILE *f;

Loading…
Cancel
Save