projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
volume_id: abort early on read failures.
[oweals/busybox.git]
/
util-linux
/
volume_id
/
linux_swap.c
diff --git
a/util-linux/volume_id/linux_swap.c
b/util-linux/volume_id/linux_swap.c
index e6084542fbe5a0d106ff1775883eb65fd4c5df2a..c9b62e9bf6bdb3c5a075206e986d0daf41af99e9 100644
(file)
--- a/
util-linux/volume_id/linux_swap.c
+++ b/
util-linux/volume_id/linux_swap.c
@@
-31,8
+31,9
@@
struct swap_header_v1_2 {
#define LARGEST_PAGESIZE 0x4000
#define LARGEST_PAGESIZE 0x4000
-int volume_id_probe_linux_swap(struct volume_id *id
, uint64_t off
)
+int volume_id_probe_linux_swap(struct volume_id *id
/*,uint64_t off*/
)
{
{
+#define off ((uint64_t)0)
struct swap_header_v1_2 *sw;
const uint8_t *buf;
unsigned page;
struct swap_header_v1_2 *sw;
const uint8_t *buf;
unsigned page;