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
b090b297
Commit
b090b297
authored
Jun 11, 2015
by
Uwe Schulzweida
Browse files
subtype.c: removed unused variables
parent
c1a430cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/subtype.c
View file @
b090b297
...
@@ -195,7 +195,7 @@ void subtypeAttsDuplicate(struct subtype_attr_t *a1, struct subtype_entry_t* dst
...
@@ -195,7 +195,7 @@ void subtypeAttsDuplicate(struct subtype_attr_t *a1, struct subtype_entry_t* dst
if
(
a1
==
NULL
)
return
;
if
(
a1
==
NULL
)
return
;
/* duplicate "a1->key", "a1->val" */
/* duplicate "a1->key", "a1->val" */
subtypeAttsDuplicate
(
a1
->
next
,
dst
);
subtypeAttsDuplicate
(
a1
->
next
,
dst
);
struct
subtype_attr_t
*
ptr
=
subtypeAttrInsert
(
dst
,
a1
->
key
,
a1
->
val
);
(
void
)
subtypeAttrInsert
(
dst
,
a1
->
key
,
a1
->
val
);
}
}
...
@@ -600,8 +600,7 @@ void tilesetInsertP(subtype_t *s1, subtype_t *s2)
...
@@ -600,8 +600,7 @@ void tilesetInsertP(subtype_t *s1, subtype_t *s2)
struct
subtype_entry_t
struct
subtype_entry_t
*
entry1
=
s1
->
entries
,
*
entry1
=
s1
->
entries
,
*
entry2
=
s2
->
entries
;
*
entry2
=
s2
->
entries
;
struct
subtype_attr_t
struct
subtype_attr_t
*
att_ptr2
;
*
att_ptr1
,
*
att_ptr2
;
/* test all entries of set 2 against set 1, to check if entry
/* test all entries of set 2 against set 1, to check if entry
already exists: */
already exists: */
...
@@ -627,7 +626,7 @@ void tilesetInsertP(subtype_t *s1, subtype_t *s2)
...
@@ -627,7 +626,7 @@ void tilesetInsertP(subtype_t *s1, subtype_t *s2)
att_ptr2
=
entry2
->
atts
;
att_ptr2
=
entry2
->
atts
;
while
(
att_ptr2
!=
NULL
)
{
while
(
att_ptr2
!=
NULL
)
{
att_ptr1
=
subtypeAttrInsert
(
entry1
,
att_ptr2
->
key
,
att_ptr2
->
val
);
(
void
)
subtypeAttrInsert
(
entry1
,
att_ptr2
->
key
,
att_ptr2
->
val
);
att_ptr2
=
att_ptr2
->
next
;
att_ptr2
=
att_ptr2
->
next
;
}
}
entry2
=
entry2
->
next
;
entry2
=
entry2
->
next
;
...
@@ -809,7 +808,7 @@ int vlistInsertTrivialTileSubtype(int vlistID)
...
@@ -809,7 +808,7 @@ int vlistInsertTrivialTileSubtype(int vlistID)
subtypeAllocate
(
&
subtype_ptr
,
SUBTYPE_TILES
);
subtypeAllocate
(
&
subtype_ptr
,
SUBTYPE_TILES
);
/* create a tile set that contains only one tile/attribute pair. */
/* create a tile set that contains only one tile/attribute pair. */
struct
subtype_entry_t
*
entry
=
subtypeEntryInsert
(
subtype_ptr
);
(
void
)
subtypeEntryInsert
(
subtype_ptr
);
/* register tile */
/* register tile */
vlist_t
*
vlistptr
=
vlist_to_pointer
(
vlistID
);
vlist_t
*
vlistptr
=
vlist_to_pointer
(
vlistID
);
...
...
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