OSDN Git Service

Fix the missing return value in emacs_c.c
authorTakashi Iwai <tiwai@suse.de>
Wed, 30 May 2012 13:22:39 +0000 (15:22 +0200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 1 Jun 2012 15:51:52 +0000 (17:51 +0200)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
interface/emacs_c.c

index 0d726c5..1f82e93 100644 (file)
@@ -285,7 +285,7 @@ static int ctl_pass_playing_list(int argc, char *argv[])
        int rc;
 
        if(fgets(cmd, sizeof(cmd), stdin) == NULL)
-           return; /* Emacs may down */
+           return 0; /* Emacs may down */
        chomp(cmd);
        if(!strncmp(cmd, "PLAY", 4))
        {