server: Convert non-afs commands to lopsub.
[paraslash.git] / afs.c
diff --git a/afs.c b/afs.c
index 0946b6d..57ec133 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();
 }