From c99819ffa8e683de9da65d94f392432dbffed3bc Mon Sep 17 00:00:00 2001 From: MANTANI Nobutaka Date: Sun, 11 Feb 2007 18:06:58 +0000 Subject: Fix build error on 4-stable. --- sysutils/dd_rescue/files/patch-dd_rescue.c | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/sysutils/dd_rescue/files/patch-dd_rescue.c b/sysutils/dd_rescue/files/patch-dd_rescue.c index 99594b66653b..72a1a20724cf 100644 --- a/sysutils/dd_rescue/files/patch-dd_rescue.c +++ b/sysutils/dd_rescue/files/patch-dd_rescue.c @@ -1,6 +1,21 @@ ---- dd_rescue.c.orig Mon Feb 14 09:47:10 2005 -+++ dd_rescue.c Tue Mar 15 00:59:42 2005 -@@ -717,7 +717,8 @@ +--- dd_rescue.c.orig Sun Jul 23 20:47:50 2006 ++++ dd_rescue.c Mon Feb 12 02:53:35 2007 +@@ -213,11 +213,13 @@ + + void savebb( int block ) + { ++ FILE *bbfile; ++ + fplog(stderr, "Bad block: %d\n", block); + + if( bbname == NULL ) + return; +- FILE *bbfile = fopen(bbname,"a"); ++ bbfile = fopen(bbname,"a"); + fprintf(bbfile,"%d\n",block); + fclose(bbfile); + } +@@ -742,7 +744,8 @@ ipos = 0; #ifdef O_DIRECT -- cgit v1.2.3