mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
* add first part of zeroconf publisher
* bump version to 0.7.1. * improve logging subsystem (introducing log levels) * remove verbose flag on cli * add new API pa_sample_format_to_string() * replace strtol() by usages of pa_atou() and pa_atoi() git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@317 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
5be9641ffe
commit
73eabece33
38 changed files with 467 additions and 280 deletions
|
|
@ -135,17 +135,16 @@ finish:
|
|||
}
|
||||
|
||||
int pa_config_parse_int(const char *filename, unsigned line, const char *lvalue, const char *rvalue, void *data, void *userdata) {
|
||||
int *i = data, k;
|
||||
char *x = NULL;
|
||||
int *i = data;
|
||||
int32_t k;
|
||||
assert(filename && lvalue && rvalue && data);
|
||||
|
||||
k = strtol(rvalue, &x, 0);
|
||||
if (!*rvalue || !x || *x) {
|
||||
|
||||
if (pa_atoi(rvalue, &k) < 0) {
|
||||
pa_log(__FILE__": [%s:%u] Failed to parse numeric value: %s\n", filename, line, rvalue);
|
||||
return -1;
|
||||
}
|
||||
|
||||
*i = k;
|
||||
*i = (int) k;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue