1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Fix build error on 4-stable.

This commit is contained in:
MANTANI Nobutaka 2007-02-11 18:06:58 +00:00
parent db6a2d08f1
commit c99819ffa8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=184906

View File

@ -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