aboutsummaryrefslogtreecommitdiffstats
path: root/vms/vms_misc.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-12-31 21:05:39 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-12-31 21:05:39 +0200
commitdc5f240cf358edaf8191f5a36f9066b0f0817462 (patch)
treea185cb4126077dc8cd843cdba77d8a5bba1d9fdc /vms/vms_misc.c
parentccb220159bbbc45aac0572c7ca1d3f0f2247d1f5 (diff)
parenta89bd16ff78c74513461af3f676d87d4eb9cfd3c (diff)
downloadegawk-dc5f240cf358edaf8191f5a36f9066b0f0817462.tar.gz
egawk-dc5f240cf358edaf8191f5a36f9066b0f0817462.tar.bz2
egawk-dc5f240cf358edaf8191f5a36f9066b0f0817462.zip
Merge branch 'gawk-4.0-stable', minor fixes after exe merge.
Diffstat (limited to 'vms/vms_misc.c')
-rw-r--r--vms/vms_misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vms/vms_misc.c b/vms/vms_misc.c
index f3650ef4..cd92d7ef 100644
--- a/vms/vms_misc.c
+++ b/vms/vms_misc.c
@@ -98,7 +98,7 @@ vms_open( const char *name, int mode, ... )
{
int result;
- if (STREQN(name, "/dev/", 5)) {
+ if (strncmp(name, "/dev/", 5) == 0) {
/* (this used to be handled in vms_devopen(), but that is only
called when opening files for output; we want it for input too) */
if (strcmp(name + 5, "null") == 0) /* /dev/null -> NL: */
@@ -307,7 +307,7 @@ VMS_fstat (fd, statbuf)
if (result == 0 /* GAWK addition; fixup /dev/null flags */
&& (statbuf->st_mode & S_IFREG)
- && STREQ(statbuf->st_dev, "_NLA0:"))
+ && strcmp(statbuf->st_dev, "_NLA0:") == 0)
{
statbuf->st_mode &= ~S_IFREG;
statbuf->st_mode |= S_IFCHR;
@@ -354,7 +354,7 @@ VMS_stat (name, statbuf)
if (result == 0 /* GAWK addition; fixup /dev/null flags */
&& (statbuf->st_mode & S_IFREG)
- && STREQ(statbuf->st_dev, "_NLA0:"))
+ && strcmp(statbuf->st_dev, "_NLA0:") == 0)
{
statbuf->st_mode &= ~S_IFREG;
statbuf->st_mode |= S_IFCHR;