solve alsa.c snprintf formatting errors
This commit is contained in:
parent
17b91b436f
commit
653915eca6
3
alsa.c
3
alsa.c
|
@ -3,6 +3,7 @@
|
|||
#include <fcntl.h>
|
||||
#include <time.h>
|
||||
#include <alsa/asoundlib.h>
|
||||
#include <alloca.h>
|
||||
|
||||
#include "module.h"
|
||||
|
||||
|
@ -68,7 +69,7 @@ int audio_volume(long *outvol) {
|
|||
int alsa_update(struct module *module) {
|
||||
long vol = -1;
|
||||
audio_volume(&vol);
|
||||
snprintf((char *)&module->buffer, MODULE_BUFFER_LEN, "%l", vol);
|
||||
snprintf((char *)&module->buffer, MODULE_BUFFER_LEN, "%li", vol);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue