/*
- * probe_smartmedia.c
- * This file is part of mtd_probe
- *
* Copyright (C) 2010 - Maxim Levitsky
*
* mtd_probe is free software; you can redistribute it and/or modify
#include <stdio.h>
#include <stdlib.h>
#include <mtd/mtd-user.h>
-
+#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
};
-void probe_smart_media(int mtd_fd, mtd_info_t* info) {
-
+void probe_smart_media(int mtd_fd, mtd_info_t* info)
+{
char* cis_buffer = malloc(SM_SECTOR_SIZE);
+
if (!cis_buffer)
return;