Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
libnice
libnice
Commits
290625b4
Commit
290625b4
authored
Jan 11, 2007
by
Dafydd Harries
Browse files
prefer g_slice_new to g_slice_alloc
darcs-hash:20070111162041-c9803-8344e3776708a583e82b0e00fbee6eedbcd507de.gz
parent
cf49edba
Changes
1
Hide whitespace changes
Inline
Side-by-side
stun/stun.c
View file @
290625b4
...
...
@@ -10,7 +10,7 @@
static
StunAttribute
*
stun_attribute_new
(
guint
type
)
{
StunAttribute
*
attr
=
g_slice_
alloc
(
sizeof
(
StunAttribute
)
)
;
StunAttribute
*
attr
=
g_slice_
new
(
StunAttribute
);
attr
->
type
=
type
;
return
attr
;
...
...
@@ -114,7 +114,7 @@ stun_message_init (StunMessage *msg, guint type)
StunMessage
*
stun_message_new
(
guint
type
)
{
StunMessage
*
msg
=
g_slice_
alloc0
(
sizeof
(
StunMessage
)
)
;
StunMessage
*
msg
=
g_slice_
new0
(
StunMessage
);
stun_message_init
(
msg
,
type
);
return
msg
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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