/* Not used explicitly, but required by the gnulib 'error' module. */
const char *program_name = "guestfsd";
+/* Name of the virtio-serial channel. */
+#define VIRTIO_SERIAL_CHANNEL "/dev/virtio-ports/org.libguestfs.channel.0"
+
static void
usage (void)
{
#endif
/* Connect to virtio-serial channel. */
- int sock = open ("/dev/virtio-ports/org.libguestfs.channel.0",
- O_RDWR | O_CLOEXEC);
+ int sock = open (VIRTIO_SERIAL_CHANNEL, O_RDWR | O_CLOEXEC);
if (sock == -1) {
fprintf (stderr,
"\n"
"output to the libguestfs developers, either in a bug report\n"
"or on the libguestfs redhat com mailing list.\n"
"\n");
- perror ("/dev/virtio-ports/org.libguestfs.channel.0");
+ perror (VIRTIO_SERIAL_CHANNEL);
exit (EXIT_FAILURE);
}