diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-12-29 20:19:42 -0500 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-12-29 21:53:29 -0500 |
commit | 358a0d1c9edcf6ff041776d65cdc2bc59887ab9c (patch) | |
tree | 656650f418e5127062e8e69000afb067d1bf79b1 /net/tipc/bearer.c | |
parent | d191854282fd831da785a5a34bc6fd16049b8578 (diff) |
tipc: rename struct media to struct tipc_media
Give it a meaningful prefix, as suggested by DaveM, so that it
is consistent with things like struct tipc_bearer, and so it isn't
confused with anything else. This has no impact on the actual
runtime code behaviour.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/bearer.c')
-rw-r--r-- | net/tipc/bearer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c index b40e98adfd7f..cddec3d9ee17 100644 --- a/net/tipc/bearer.c +++ b/net/tipc/bearer.c | |||
@@ -41,7 +41,7 @@ | |||
41 | 41 | ||
42 | #define MAX_ADDR_STR 32 | 42 | #define MAX_ADDR_STR 32 |
43 | 43 | ||
44 | static struct media *media_list[MAX_MEDIA]; | 44 | static struct tipc_media *media_list[MAX_MEDIA]; |
45 | static u32 media_count; | 45 | static u32 media_count; |
46 | 46 | ||
47 | struct tipc_bearer tipc_bearers[MAX_BEARERS]; | 47 | struct tipc_bearer tipc_bearers[MAX_BEARERS]; |
@@ -68,7 +68,7 @@ static int media_name_valid(const char *name) | |||
68 | * tipc_media_find - locates specified media object by name | 68 | * tipc_media_find - locates specified media object by name |
69 | */ | 69 | */ |
70 | 70 | ||
71 | struct media *tipc_media_find(const char *name) | 71 | struct tipc_media *tipc_media_find(const char *name) |
72 | { | 72 | { |
73 | u32 i; | 73 | u32 i; |
74 | 74 | ||
@@ -83,7 +83,7 @@ struct media *tipc_media_find(const char *name) | |||
83 | * media_find_id - locates specified media object by type identifier | 83 | * media_find_id - locates specified media object by type identifier |
84 | */ | 84 | */ |
85 | 85 | ||
86 | static struct media *media_find_id(u8 type) | 86 | static struct tipc_media *media_find_id(u8 type) |
87 | { | 87 | { |
88 | u32 i; | 88 | u32 i; |
89 | 89 | ||
@@ -100,7 +100,7 @@ static struct media *media_find_id(u8 type) | |||
100 | * Bearers for this media type must be activated separately at a later stage. | 100 | * Bearers for this media type must be activated separately at a later stage. |
101 | */ | 101 | */ |
102 | 102 | ||
103 | int tipc_register_media(struct media *m_ptr) | 103 | int tipc_register_media(struct tipc_media *m_ptr) |
104 | { | 104 | { |
105 | int res = -EINVAL; | 105 | int res = -EINVAL; |
106 | 106 | ||
@@ -138,7 +138,7 @@ exit: | |||
138 | void tipc_media_addr_printf(struct print_buf *pb, struct tipc_media_addr *a) | 138 | void tipc_media_addr_printf(struct print_buf *pb, struct tipc_media_addr *a) |
139 | { | 139 | { |
140 | char addr_str[MAX_ADDR_STR]; | 140 | char addr_str[MAX_ADDR_STR]; |
141 | struct media *m_ptr; | 141 | struct tipc_media *m_ptr; |
142 | 142 | ||
143 | m_ptr = media_find_id(a->media_id); | 143 | m_ptr = media_find_id(a->media_id); |
144 | 144 | ||
@@ -425,7 +425,7 @@ int tipc_bearer_congested(struct tipc_bearer *b_ptr, struct link *l_ptr) | |||
425 | int tipc_enable_bearer(const char *name, u32 disc_domain, u32 priority) | 425 | int tipc_enable_bearer(const char *name, u32 disc_domain, u32 priority) |
426 | { | 426 | { |
427 | struct tipc_bearer *b_ptr; | 427 | struct tipc_bearer *b_ptr; |
428 | struct media *m_ptr; | 428 | struct tipc_media *m_ptr; |
429 | struct bearer_name b_name; | 429 | struct bearer_name b_name; |
430 | char addr_string[16]; | 430 | char addr_string[16]; |
431 | u32 bearer_id; | 431 | u32 bearer_id; |