]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Removed warnings
authorAbramo Bagnara <abramo@alsa-project.org>
Fri, 26 May 2000 17:58:24 +0000 (17:58 +0000)
committerAbramo Bagnara <abramo@alsa-project.org>
Fri, 26 May 2000 17:58:24 +0000 (17:58 +0000)
src/pcm/pcm.c

index 5a4bee4f69127930cab16fb4417b54ee6a9c5a4c..0bd53ca25714ec8b67b2b678d9c53dbc6d18ce5e 100644 (file)
@@ -20,6 +20,7 @@
  */
   
 #include <stdio.h>
+#include <string.h>
 #include <malloc.h>
 #include <errno.h>
 #include <sys/poll.h>
@@ -579,7 +580,7 @@ static assoc_t fmts[] = {
 static assoc_t starts[] = { START(GO), START(DATA), START(FULL), END };
 static assoc_t xruns[] = { XRUN(FLUSH), XRUN(DRAIN), END };
 static assoc_t fills[] = { FILL(NONE), FILL(SILENCE_WHOLE), FILL(SILENCE), END };
-static assoc_t onoff[] = { {0, "OFF"}, {1, "ON"}, {-1, "ON"}, END };
+static assoc_t onoff[] = { {0, "OFF", NULL}, {1, "ON", NULL}, {-1, "ON", NULL}, END };
 
 int snd_pcm_dump_setup(snd_pcm_t *pcm, int channel, FILE *fp)
 {