summaryrefslogtreecommitdiff
path: root/src/block.c
diff options
context:
space:
mode:
authorrobi <robi>2010-09-16 17:22:29 +0000
committerrobi <robi>2010-09-16 17:22:29 +0000
commitd90aa9c825e6c2dda92c65238afc782c99f9f0b2 (patch)
tree0f81ad6d93e26446afbf38f39d13baebf44cdb94 /src/block.c
parent6512ac6340cc34ed778505293943b664e4ec1b4c (diff)
magic functions part3 (inactiv)
Diffstat (limited to 'src/block.c')
-rw-r--r--src/block.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/block.c b/src/block.c
index b80c1d2..b1db943 100644
--- a/src/block.c
+++ b/src/block.c
@@ -31,6 +31,7 @@
#include "ext2fsP.h"
#include "block.h"
#include "journal.h"
+#include "util.h"
extern ext2fs_block_bitmap bmap ;
@@ -693,16 +694,4 @@ errout:
}
//___________________________________________________________________________________________________
-#include "magic.h"
-//FIXME in work
-int magic_check_block(char* buf,magic_t cookie, __u32 size, blk_t blk){
- char msg_buf[200];
- int count = size;
-
- strncpy(msg_buf,magic_buffer(cookie,buf,size),199);
- while (*(buf+count) == 0) count-- ;
- printf("Scan Result : %s %d\n", msg_buf , count+1) ;
-
- blockhex(stdout,buf,0,(count < (size -5)) ? count + 5 : size );
- return count+1;
-} \ No newline at end of file
+