changeset 748:27a7ac9f963b

Changes to make irix 5 lint happy.
author neelin <neelin>
date Wed, 08 Feb 1995 21:16:06 +0000
parents 011f66c78cfd
children 0b0c6b420f63
files conversion/Acr_nema/Makefile conversion/Acr_nema/acr_io.c conversion/Acr_nema/file_io.c conversion/Acr_nema/group.c
diffstat 4 files changed, 25 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/conversion/Acr_nema/Makefile
+++ b/conversion/Acr_nema/Makefile
@@ -64,10 +64,10 @@
 
 # How to create lint library
 $(LINT_ACR_LIB) : $(LINT_OBJS)
-	lint -o $(ACR_LIB) -x -u $(LINTFLAGS) $(LINT_OBJS)
+	lint -o $(ACR_LIB) -m -x -u $(LINTFLAGS) $(LINT_OBJS)
 
 $(LINT_LIST_EXE) : $(TARGET_IN_DEPENDENCY)ln $(LINT_ACR_LIB)
-	lint -u $(LINTFLAGS) $@ln $(LINT_ACR_LIB)
+	lint -u -m $(LINTFLAGS) $@ln $(LINT_ACR_LIB)
 
 # how to make man pages
 .man1.1:
--- a/conversion/Acr_nema/acr_io.c
+++ b/conversion/Acr_nema/acr_io.c
@@ -6,9 +6,12 @@
 @GLOBALS    : 
 @CREATED    : November 10, 1993 (Peter Neelin)
 @MODIFIED   : $Log: acr_io.c,v $
-@MODIFIED   : Revision 2.0  1994-09-28 10:36:06  neelin
-@MODIFIED   : Release of minc version 0.2
+@MODIFIED   : Revision 2.1  1995-02-08 21:16:06  neelin
+@MODIFIED   : Changes to make irix 5 lint happy.
 @MODIFIED   :
+ * Revision 2.0  1994/09/28  10:36:06  neelin
+ * Release of minc version 0.2
+ *
  * Revision 1.9  94/09/28  10:35:39  neelin
  * Pre-release
  * 
@@ -310,7 +313,7 @@
          else
             return ACR_ABNORMAL_END_OF_INPUT;
       }
-      buffer[i] = ch;
+      buffer[i] = (unsigned char) ch;
    }
 
    /* Test data length (the first element should be a group length).
@@ -377,7 +380,7 @@
          else
             return ACR_ABNORMAL_END_OF_INPUT;
       }
-      buffer[i] = ch;
+      buffer[i] = (unsigned char) ch;
    }
    acr_get_short(1, &buffer[0], &grpid);
    *group_id = grpid;
@@ -402,7 +405,7 @@
          FREE(*data_pointer);
          return ACR_ABNORMAL_END_OF_INPUT;
       }
-      (*data_pointer)[i] = ch;
+      (*data_pointer)[i] = (char) ch;
    }
 
    return ACR_OK;
@@ -435,9 +438,9 @@
    buflen = sizeof(buffer)/sizeof(buffer[0]);
 
    /* Write out group id, element id and length of data */
-   grpid = group_id;
+   grpid = (unsigned short) group_id;
    acr_put_short(1, &grpid, &buffer[0]);
-   elid = element_id;
+   elid = (unsigned short) element_id;
    acr_put_short(1, &elid, &buffer[2]);
    acr_put_long(1, &data_length, &buffer[4]);
    for (i=0; i < buflen; i++) {
--- a/conversion/Acr_nema/file_io.c
+++ b/conversion/Acr_nema/file_io.c
@@ -5,9 +5,12 @@
 @GLOBALS    : 
 @CREATED    : November 9, 1993 (Peter Neelin)
 @MODIFIED   : $Log: file_io.c,v $
-@MODIFIED   : Revision 2.0  1994-09-28 10:36:13  neelin
-@MODIFIED   : Release of minc version 0.2
+@MODIFIED   : Revision 2.1  1995-02-08 21:16:06  neelin
+@MODIFIED   : Changes to make irix 5 lint happy.
 @MODIFIED   :
+ * Revision 2.0  1994/09/28  10:36:13  neelin
+ * Release of minc version 0.2
+ *
  * Revision 1.7  94/09/28  10:35:42  neelin
  * Pre-release
  * 
@@ -376,7 +379,7 @@
    /* Check to see if we can put the character back */
    if (afp->ptr > afp->start) {
       afp->ptr--;
-      *afp->ptr = c;
+      *afp->ptr = (unsigned char) c;
    }
    else {
       return EOF;
--- a/conversion/Acr_nema/group.c
+++ b/conversion/Acr_nema/group.c
@@ -5,10 +5,13 @@
 @GLOBALS    : 
 @CREATED    : November 10, 1993 (Peter Neelin)
 @MODIFIED   : $Log: group.c,v $
-@MODIFIED   : Revision 2.1  1995-01-04 08:10:16  neelin
-@MODIFIED   : Improved string printing in dump function (longer strings and replace
-@MODIFIED   : carriage returns, linefeeds and formfeeds by spaces).
+@MODIFIED   : Revision 2.2  1995-02-08 21:16:06  neelin
+@MODIFIED   : Changes to make irix 5 lint happy.
 @MODIFIED   :
+ * Revision 2.1  1995/01/04  08:10:16  neelin
+ * Improved string printing in dump function (longer strings and replace
+ * carriage returns, linefeeds and formfeeds by spaces).
+ *
  * Revision 2.0  94/09/28  10:36:16  neelin
  * Release of minc version 0.2
  * 
@@ -62,6 +65,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <ctype.h>
 #include <minc_def.h>
 #include <acr_nema.h>