From 11898ef3373b1af884bafcf3b6380ff8a0d165d8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Fri, 22 Aug 2008 18:57:00 -0400 Subject: [PATCH] Revert b1cea0a301d6bc partially (bad warning fix) Sorry I pushed this. --- modules/access_filter/timeshift.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/access_filter/timeshift.c b/modules/access_filter/timeshift.c index e2e39bb686..6567e22c57 100644 --- a/modules/access_filter/timeshift.c +++ b/modules/access_filter/timeshift.c @@ -378,12 +378,7 @@ static void NextFileWrite( access_t *p_access ) /* Put written file in read list */ if( p_sys->i_write_size < p_sys->i_file_size ) - if( ftruncate( fileno( p_sys->p_write_list->file ), - p_sys->i_write_size ) == -1 ) - { - msg_Dbg( p_access, "unable to truncate file: %m" ); - /* return; */ - } + ftruncate( fileno( p_sys->p_write_list->file ), p_sys->i_write_size ); fseek( p_sys->p_write_list->file, 0, SEEK_SET ); *p_sys->pp_read_last = p_sys->p_write_list; -- 2.39.2