summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-01-08 11:05:32 +0200
committerArnold D. Robbins <arnold@skeeve.com>2021-01-08 11:05:32 +0200
commitd562eb482f3180dcd59a332edc91027ea3844d90 (patch)
treed90bb37b1c75a6429d961031b6a3ae08559408c0 /vms
parentb4dc5fb3dc57f7fc7eaba39c5814b8bae9403b77 (diff)
downloadgawk-d562eb482f3180dcd59a332edc91027ea3844d90.tar.gz
Improve use of types throughout.
Diffstat (limited to 'vms')
-rw-r--r--vms/ChangeLog8
-rw-r--r--vms/gawkmisc.vms10
2 files changed, 13 insertions, 5 deletions
diff --git a/vms/ChangeLog b/vms/ChangeLog
index 39b21150..7d80c4bf 100644
--- a/vms/ChangeLog
+++ b/vms/ChangeLog
@@ -1,3 +1,11 @@
+2021-01-08 Arnold D. Robbins <arnold@skeeve.com>
+
+ * gawkmisc.vms (quote): Make const char *.
+ (defpath): Make const char *.
+ (deflibpath): Make const char *.
+ (envsep): Make const char *.
+ (gawk_name): Now returns const char *.
+
2020-04-14 Arnold D. Robbins <arnold@skeeve.com>
* 5.1.0: Release tar ball made.
diff --git a/vms/gawkmisc.vms b/vms/gawkmisc.vms
index 725cf669..ff5805bd 100644
--- a/vms/gawkmisc.vms
+++ b/vms/gawkmisc.vms
@@ -79,10 +79,10 @@ int SYS$TRNLNM(
const unsigned char * acmode,
const struct item_list_3 * item_list);
-char quote = '\'';
-char *defpath = DEFPATH;
-char *deflibpath = DEFLIBPATH;
-char envsep = ',';
+const char quote = '\'';
+const char *defpath = DEFPATH;
+const char *deflibpath = DEFLIBPATH;
+const char envsep = ',';
#define VMS_NAME_LEN 255
static char vms_name[VMS_NAME_LEN+1];
@@ -132,7 +132,7 @@ static int sys_trnlnm
* passed exec() argv[0] and handle both cases.
*/
-char *
+const char *
gawk_name(filespec)
const char *filespec;
{