diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-05-10 12:37:02 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-05-10 12:37:02 +0000 |
commit | 80456b3dab6d46705e8788be2b9539bbe115337e (patch) | |
tree | d19e3762bb06018936c0357bf6a9cbfd8173f261 /sys/arch | |
parent | b6a9cb4c567f15b5050ef9925a4fcde6586cf722 (diff) |
Rename mdesc_get_prop_string into mdesc_get_prop_str.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/include/mdesc.h | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/mdesc.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/sparc64/include/mdesc.h b/sys/arch/sparc64/include/mdesc.h index b60135d5649..5e5581bd739 100644 --- a/sys/arch/sparc64/include/mdesc.h +++ b/sys/arch/sparc64/include/mdesc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mdesc.h,v 1.1 2009/04/12 14:53:15 kettenis Exp $ */ +/* $OpenBSD: mdesc.h,v 1.2 2009/05/10 12:37:01 kettenis Exp $ */ /* * Copyright (c) 2009 Mark Kettenis * @@ -42,7 +42,7 @@ extern size_t mdesc_len; void mdesc_init(void); uint64_t mdesc_get_prop_val(int, const char *); -const char * mdesc_get_prop_string(int, const char *); +const char * mdesc_get_prop_str(int, const char *); int mdesc_find(const char *, uint64_t); int mdesc_find_child(int, const char *, uint64_t); #endif diff --git a/sys/arch/sparc64/sparc64/mdesc.c b/sys/arch/sparc64/sparc64/mdesc.c index ebeba17af03..9994392cfb8 100644 --- a/sys/arch/sparc64/sparc64/mdesc.c +++ b/sys/arch/sparc64/sparc64/mdesc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdesc.c,v 1.2 2009/04/17 21:31:38 kettenis Exp $ */ +/* $OpenBSD: mdesc.c,v 1.3 2009/05/10 12:37:01 kettenis Exp $ */ /* * Copyright (c) 2009 Mark Kettenis * @@ -114,7 +114,7 @@ mdesc_get_prop_val(int idx, const char *name) } const char * -mdesc_get_prop_string(int idx, const char *name) +mdesc_get_prop_str(int idx, const char *name) { struct md_header *hdr; struct md_element *elem; @@ -150,7 +150,7 @@ mdesc_find(const char *name, uint64_t cfg_handle) elem = (struct md_element *)(mdesc + sizeof(struct md_header)); for (idx = 0; elem[idx].tag == 'N'; idx = elem[idx].d.val) { - str = mdesc_get_prop_string(idx, "name"); + str = mdesc_get_prop_str(idx, "name"); val = mdesc_get_prop_val(idx, "cfg-handle"); if (str && strcmp(str, name) == 0 && val == cfg_handle) return (idx); @@ -179,7 +179,7 @@ mdesc_find_child(int idx, const char *name, uint64_t cfg_handle) continue; arc = elem[idx].d.val; - str = mdesc_get_prop_string(arc, "name"); + str = mdesc_get_prop_str(arc, "name"); val = mdesc_get_prop_val(arc, "cfg-handle"); if (str && strcmp(str, name) == 0 && val == cfg_handle) return (arc); |