aboutsummaryrefslogtreecommitdiffstats
path: root/vms
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-12-31 20:51:11 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-12-31 20:51:11 +0200
commita89bd16ff78c74513461af3f676d87d4eb9cfd3c (patch)
tree25977f27d837e3713b52e056f533bcbaba8a4597 /vms
parenta32faf6354086864b55755c968f72a90e7e8f0d1 (diff)
downloadegawk-a89bd16ff78c74513461af3f676d87d4eb9cfd3c.tar.gz
egawk-a89bd16ff78c74513461af3f676d87d4eb9cfd3c.tar.bz2
egawk-a89bd16ff78c74513461af3f676d87d4eb9cfd3c.zip
Remove ancient STREQ, STREQN macros.
Diffstat (limited to 'vms')
-rw-r--r--vms/ChangeLog5
-rw-r--r--vms/vms_misc.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/vms/ChangeLog b/vms/ChangeLog
index 62db87e1..a39f1125 100644
--- a/vms/ChangeLog
+++ b/vms/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-31 Arnold D. Robbins <arnold@skeeve.com>
+
+ * vms_misc.c: [STREQ, STREQN]: Change use of macros to call
+ strcmp, strncmp, directly.
+
2011-11-02 Pat Rankin <r.pat.rankin@gmail.com>
* vms-conf.h (HAVE_SETSID, HAVE_SYS_IOCTL): Add but leave undef'd.
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;