diff options
author | Alasdair Kergon <agk@redhat.com> | 2005-03-10 20:23:36 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2005-03-10 20:23:36 +0000 |
commit | 1cbfe699611f089412f6f300bae673e959f3436b (patch) | |
tree | 43e9d3fd8246879ba472cd4d4f1663b8b7efaa53 /lib/label/label.c | |
parent | 47de39908b18085c0e461e35294459ba7c0a1580 (diff) | |
download | lvm2-1cbfe699611f089412f6f300bae673e959f3436b.tar.gz lvm2-1cbfe699611f089412f6f300bae673e959f3436b.tar.xz lvm2-1cbfe699611f089412f6f300bae673e959f3436b.zip |
read/write may be macros
Diffstat (limited to 'lib/label/label.c')
-rw-r--r-- | lib/label/label.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/label/label.c b/lib/label/label.c index 030c103e..9d6dd685 100644 --- a/lib/label/label.c +++ b/lib/label/label.c @@ -279,7 +279,7 @@ int label_read(struct device *dev, struct label **result) return 0; } - if ((r = l->ops->read(l, dev, buf, result)) && result && *result) + if ((r = (l->ops->read)(l, dev, buf, result)) && result && *result) (*result)->sector = sector; return r; @@ -309,7 +309,7 @@ int label_write(struct device *dev, struct label *label) lh->sector_xl = xlate64(label->sector); lh->offset_xl = xlate32(sizeof(*lh)); - if (!label->labeller->ops->write(label, buf)) { + if (!(label->labeller->ops->write)(label, buf)) { stack; return 0; } |