summaryrefslogtreecommitdiff
path: root/usr/src/lib/lvm
diff options
context:
space:
mode:
authorwesolows <none@none>2006-03-30 16:06:07 -0800
committerwesolows <none@none>2006-03-30 16:06:07 -0800
commit80ab886d233f514d54c2a6bdeb9fdfd951bd6881 (patch)
tree0a7ee03b9e4951aa9aa2baa1d5479ac4bc92f070 /usr/src/lib/lvm
parent52aacb450723e8271d37836e1b5861c2072a3981 (diff)
downloadillumos-gate-80ab886d233f514d54c2a6bdeb9fdfd951bd6881.tar.gz
6242262 ON should be buildable with gcc
6268345 fmd is insufficiently careful with alignment 6271070 gcc and cmd/fm don't get along 6272173 cpumem diag module writes to constant memory, crashing fmd 6273907 gcc and cmd/syseventd don't get along 6308057 gcc and sgs/dis don't get along on SPARC 6359863 the C preprocessor is still feeling abused by token pasting 6359868 gcc and cmd/stmsboot still don't get along 6359878 gcc and lib/smartcard don't get along on sparc 6361816 gcc and perl don't get along 6370832 kernel should agree on C99 mode for studio and gcc 6372728 gcc and sata don't get along 6390345 cw inserts garbage when used as a preprocessor 6397680 gcc and smbios are not getting along 6399113 meta_namespace.c uses worrisome construct and is not gcc friendly 6403999 cw is ugly and hairy and needs a man
Diffstat (limited to 'usr/src/lib/lvm')
-rw-r--r--usr/src/lib/lvm/libmeta/common/meta_namespace.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr/src/lib/lvm/libmeta/common/meta_namespace.c b/usr/src/lib/lvm/libmeta/common/meta_namespace.c
index ac0d7f1e2d..53c1b3e35c 100644
--- a/usr/src/lib/lvm/libmeta/common/meta_namespace.c
+++ b/usr/src/lib/lvm/libmeta/common/meta_namespace.c
@@ -108,7 +108,7 @@ meta_gethspnmentbyid(
nm.hspid = hspid;
nm.ret_hspid = MD_HSPID_WILD;
nm.hspname_len = MAXPATHLEN;
- nm.hspname = (uint64_t)device_name;
+ nm.hspname = (uintptr_t)device_name;
if (metaioctl(MD_IOCGET_HSP_NM, &nm, &nm.mde, NULL) != 0) {
(void) mdstealerror(ep, &nm.mde);
@@ -148,7 +148,7 @@ meta_gethspnmentbyname(
nm.hspid = MD_HSPID_WILD;
nm.ret_hspid = MD_HSPID_WILD;
nm.hspname_len = strlen(device_name) + 1;
- nm.hspname = (uint64_t)device_name;
+ nm.hspname = (uintptr_t)device_name;
/*
* The ioctl expects the a hsp name and return its hsp_self_id.
@@ -727,7 +727,10 @@ add_self_name(
md_mnnode_desc *mnside;
p = strrchr(uname, '/');
- p = (p == NULL? uname : ++p);
+ if (p == NULL)
+ p = uname;
+ else
+ p++;
/*
* The valid qualified name