Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b165261a
Commit
b165261a
authored
Apr 16, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lwlib-utils.c (XtCompositeChildren): Likewise.
parent
5c5e6a40
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
lwlib/ChangeLog
lwlib/ChangeLog
+1
-0
lwlib/lwlib-utils.c
lwlib/lwlib-utils.c
+1
-1
No files found.
lwlib/ChangeLog
View file @
b165261a
...
...
@@ -2,6 +2,7 @@
* lwlib-Xm.c (make_dialog): Rename local to avoid shadowing.
(make_menu_in_widget): Add cast to avoid warning.
* lwlib-utils.c (XtCompositeChildren): Likewise.
* lwlib.c (EXPLAIN, destroy_one_instance): Avoid "else;".
(first_child) [USE_MOTIF]: Protoize.
...
...
lwlib/lwlib-utils.c
View file @
b165261a
...
...
@@ -129,7 +129,7 @@ XtCompositeChildren (Widget widget, unsigned int *number)
return
NULL
;
}
n
=
cw
->
composite
.
num_children
;
result
=
(
Widget
*
)
XtMalloc
(
n
*
sizeof
(
Widget
));
result
=
(
Widget
*
)
(
void
*
)
XtMalloc
(
n
*
sizeof
(
Widget
));
*
number
=
n
;
for
(
i
=
0
;
i
<
n
;
i
++
)
result
[
i
]
=
cw
->
composite
.
children
[
i
];
...
...
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