mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Lot of cleanings with the help of gcc3
This commit is contained in:
parent
ce8275b943
commit
5b50ec848a
59 changed files with 669 additions and 667 deletions
|
|
@ -382,7 +382,7 @@ static int _snd_config_search(snd_config_t *config, const char *id, int len, snd
|
|||
} else {
|
||||
if (strlen(n->id) != (size_t) len)
|
||||
continue;
|
||||
if (memcmp(n->id, id, len) == 0) {
|
||||
if (memcmp(n->id, id, (size_t) len) == 0) {
|
||||
*result = n;
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -581,7 +581,7 @@ static int parse_defs(snd_config_t *father, input_t *input)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void string_print(char *str, int id, snd_output_t *out)
|
||||
static void string_print(char *str, int id, snd_output_t *out)
|
||||
{
|
||||
unsigned char *p = str;
|
||||
if (!id) {
|
||||
|
|
@ -800,7 +800,7 @@ int snd_config_load(snd_config_t *config, snd_input_t *in)
|
|||
fd = input.current;
|
||||
if (err < 0) {
|
||||
if (input.error < 0) {
|
||||
char *str;
|
||||
const char *str;
|
||||
switch (input.error) {
|
||||
case UNTERMINATED_STRING:
|
||||
str = "Unterminated string";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue