daemon: Fix head and tail commands to work on absolute symbolic links (RHBZ#579608).
[libguestfs.git] / daemon / wc.c
index 93d4ebb..fe27bf1 100644 (file)
@@ -28,7 +28,7 @@
 #include "actions.h"
 
 static int
-wc (char *flag, const char *path)
+wc (const char *flag, const char *path)
 {
   char *buf;
   char *out, *err;
@@ -60,7 +60,7 @@ wc (char *flag, const char *path)
 
   /* Parse the number. */
   if (sscanf (out, "%d", &r) != 1) {
-    reply_with_error ("wc: cannot parse number: %s", out);
+    reply_with_error ("cannot parse number: %s", out);
     free (out);
     return -1;
   }