chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
accelerometer: add orientation property
[elogind.git]
/
extras
/
mtd_probe
/
probe_smartmedia.c
diff --git
a/extras/mtd_probe/probe_smartmedia.c
b/extras/mtd_probe/probe_smartmedia.c
index ab6edea4b140a09597670deaa58f3eee7cf169a5..78841f05da8fef1664da1e3039c022563cffe471 100644
(file)
--- a/
extras/mtd_probe/probe_smartmedia.c
+++ b/
extras/mtd_probe/probe_smartmedia.c
@@
-1,7
+1,4
@@
/*
/*
- * 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
* Copyright (C) 2010 - Maxim Levitsky
*
* mtd_probe is free software; you can redistribute it and/or modify
@@
-23,7
+20,7
@@
#include <stdio.h>
#include <stdlib.h>
#include <mtd/mtd-user.h>
#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>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@
-37,9
+34,10
@@
static const uint8_t cis_signature[] = {
};
};
-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);
char* cis_buffer = malloc(SM_SECTOR_SIZE);
+
if (!cis_buffer)
return;
if (!cis_buffer)
return;