Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
a3f4a48c
Commit
a3f4a48c
authored
Mar 28, 2014
by
Uwe Schulzweida
Browse files
renamed struct namespace to struct Namespace
parent
3f4d6a51
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/namespace.c
View file @
a3f4a48c
...
...
@@ -79,7 +79,7 @@ static const union namespaceSwitchValue defaultSwitches[NUM_NAMESPACE_SWITCH] =
}
#endif
struct
n
amespace
struct
N
amespace
{
statusCode
resStage
;
union
namespaceSwitchValue
switches
[
NUM_NAMESPACE_SWITCH
];
...
...
@@ -111,7 +111,7 @@ struct namespace
#endif
};
struct
n
amespace
*
namespaces
=
&
initialNamespace
;
struct
N
amespace
*
namespaces
=
&
initialNamespace
;
static
int
namespacesSize
=
1
;
...
...
@@ -202,7 +202,7 @@ namespaceNew()
else
if
(
namespacesSize
==
1
)
{
/* make room for additional namespace */
struct
n
amespace
*
newNameSpaces
=
(
struct
n
amespace
*
)
xmalloc
((
namespacesSize
+
1
)
*
sizeof
(
namespaces
[
0
]));
struct
N
amespace
*
newNameSpaces
=
(
struct
N
amespace
*
)
xmalloc
((
namespacesSize
+
1
)
*
sizeof
(
namespaces
[
0
]));
memcpy
(
newNameSpaces
,
namespaces
,
sizeof
(
namespaces
[
0
]));
namespaces
=
newNameSpaces
;
++
namespacesSize
;
...
...
@@ -212,7 +212,7 @@ namespaceNew()
{
/* make room for additional namespace */
newNamespaceID
=
namespacesSize
;
namespaces
=
(
struct
n
amespace
*
)
xrealloc
(
namespaces
,
(
namespacesSize
+
1
)
*
sizeof
(
namespaces
[
0
]));
namespaces
=
(
struct
N
amespace
*
)
xrealloc
(
namespaces
,
(
namespacesSize
+
1
)
*
sizeof
(
namespaces
[
0
]));
++
namespacesSize
;
}
else
/* implicit: namespacesSize >= NUM_NAMESPACES */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment