]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - afs.c
server: Convert non-afs commands to lopsub.
[paraslash.git] / afs.c
diff --git a/afs.c b/afs.c
index 0946b6df3b0766f82f95f0cd100f039753543350..57ec13385f6c2725be4b5bb7a3d17faa10d024d8 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -12,6 +12,7 @@
 #include <signal.h>
 #include <fnmatch.h>
 #include <osl.h>
+#include <lopsub.h>
 #include <arpa/inet.h>
 #include <sys/un.h>
 #include <netdb.h>
@@ -888,7 +889,7 @@ static int execute_server_command(fd_set *rfds)
                return ret;
        buf[n] = '\0';
        if (strcmp(buf, "new"))
-               return -E_BAD_CMD;
+               return -ERRNO_TO_PARA_ERROR(EINVAL);
        return open_next_audio_file();
 }