terminal_copy doesn't return void anymore.
[util-vserver.git] / src / vlogin.c
index 1d962f4..9466ad8 100644 (file)
@@ -137,7 +137,7 @@ terminal_copy(int src, int dst)
     terminal_kill(SIGTERM);
     exit(1);
   } else if (len == -1)
-    return;
+    return -1;
 
   /* write activity to user */
   EwriteAll(dst, buf, len);