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
Xiph.Org
Icecast-Server
Commits
66082000
Commit
66082000
authored
Feb 17, 2004
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor cleanup
svn path=/trunk/icecast/; revision=5834
parent
c3f0d438
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/cfgfile.c
src/cfgfile.c
+4
-2
src/source.c
src/source.c
+1
-1
No files found.
src/cfgfile.c
View file @
66082000
...
...
@@ -167,8 +167,7 @@ void config_clear(ice_config_t *c)
nextrelay
=
relay
->
next
;
xmlFree
(
relay
->
server
);
xmlFree
(
relay
->
mount
);
if
(
relay
->
localmount
)
xmlFree
(
relay
->
localmount
);
xmlFree
(
relay
->
localmount
);
free
(
relay
);
relay
=
nextrelay
;
}
...
...
@@ -600,6 +599,8 @@ static void _parse_relay(xmlDocPtr doc, xmlNodePtr node,
if
(
tmp
)
xmlFree
(
tmp
);
}
}
while
((
node
=
node
->
next
));
if
(
relay
->
localmount
==
NULL
)
relay
->
localmount
=
xmlStrdup
(
relay
->
mount
);
}
static
void
_parse_listen_socket
(
xmlDocPtr
doc
,
xmlNodePtr
node
,
...
...
@@ -701,6 +702,7 @@ static void _parse_directory(xmlDocPtr doc, xmlNodePtr node,
tmp
=
(
char
*
)
xmlNodeListGetString
(
doc
,
node
->
xmlChildrenNode
,
1
);
configuration
->
yp_url_timeout
[
configuration
->
num_yp_directories
]
=
atoi
(
tmp
);
if
(
tmp
)
xmlFree
(
tmp
);
}
else
if
(
strcmp
(
node
->
name
,
"server"
)
==
0
)
{
_add_server
(
doc
,
node
->
xmlChildrenNode
,
configuration
);
}
else
if
(
strcmp
(
node
->
name
,
"touch-interval"
)
==
0
)
{
...
...
src/source.c
View file @
66082000
...
...
@@ -147,7 +147,7 @@ source_t *source_find_mount_raw(const char *mount)
/* Search for mount, if the mount is there but not currently running then
* check
it's
fallback, and so on. Must have a global source lock to call
* check
the
fallback, and so on. Must have a global source lock to call
* this function.
*/
source_t
*
source_find_mount
(
const
char
*
mount
)
...
...
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