X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=common%2Fdata%2Fvirtmodem.c;h=6b6d61aac108b38a3f23308c136f5426682ba040;hp=2ff532ab7ea34f01ad00fb3763c9e71c763a3ebc;hb=f8be8c8446c24c1abbfab659ee56f1586bf0db50;hpb=30eeeb18e682a0e0f3db298912e284d3122b63a4 diff --git a/common/data/virtmodem.c b/common/data/virtmodem.c index 2ff532a..6b6d61a 100644 --- a/common/data/virtmodem.c +++ b/common/data/virtmodem.c @@ -51,6 +51,9 @@ /* Global variables */ + +#define GNOKII_DEV "/var/gnokii-dev" + //extern bool TerminateThread; /* Local variables */ @@ -212,13 +215,13 @@ static int VM_PtySetup(char *bindir) #endif #ifdef DEBUG - fprintf (stderr, _("Slave pty is %s, calling %s to create /dev/gnokii.\n"), slave_name, + fprintf (stderr, _("Slave pty is %s, calling %s to create \"%s\".\n"), slave_name, #ifndef UCLINUX mgnokiidev #else /* UCLINUX */ "" #endif /* UCLINUX */ - ); + ,GNOKII_DEV); #endif /* DEBUG */ #ifndef UCLINUX @@ -230,10 +233,10 @@ static int VM_PtySetup(char *bindir) #else /* UCLINUX */ /* Remove symlink in case it already exists. Don't care if it fails. */ - unlink ("/dev/gnokii"); + unlink (GNOKII_DEV); /* Create symlink */ - err = symlink(slave_name, "/dev/gnokii"); + err = symlink(slave_name, GNOKII_DEV); #endif /* UCLINUX */