Mercurial > hg > minc-tools
changeset 743:8b1cdeef596e
More changes for irix 5 lint.
author | neelin <neelin> |
---|---|
date | Wed, 08 Feb 1995 19:14:44 +0000 |
parents | 5b7c44739e6c |
children | 50bd313eb2f5 |
files | libsrc/dim_conversion.c libsrc/image_conversion.c libsrc/netcdf_convenience.c libsrc/value_conversion.c |
diffstat | 4 files changed, 40 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/libsrc/dim_conversion.c +++ b/libsrc/dim_conversion.c @@ -17,9 +17,12 @@ MI_icv_dimconv_init @CREATED : September 9, 1992. (Peter Neelin) @MODIFIED : $Log: dim_conversion.c,v $ -@MODIFIED : Revision 2.2 1995-02-08 19:01:06 neelin -@MODIFIED : Moved private function declarations from minc_routines.h to appropriate file. +@MODIFIED : Revision 2.3 1995-02-08 19:14:44 neelin +@MODIFIED : More changes for irix 5 lint. @MODIFIED : + * Revision 2.2 1995/02/08 19:01:06 neelin + * Moved private function declarations from minc_routines.h to appropriate file. + * * Revision 2.1 1994/11/02 09:42:37 neelin * Fixed conversion of vector to scalar (old code simply returned the first * component of the vector - now averaging is done properly). @@ -52,7 +55,7 @@ ---------------------------------------------------------------------------- */ #ifndef lint -static char rcsid[] = "$Header: /private-cvsroot/minc/libsrc/dim_conversion.c,v 2.2 1995-02-08 19:01:06 neelin Exp $ MINC (MNI)"; +static char rcsid[] = "$Header: /private-cvsroot/minc/libsrc/dim_conversion.c,v 2.3 1995-02-08 19:14:44 neelin Exp $ MINC (MNI)"; #endif #include <type_limits.h> @@ -171,7 +174,8 @@ @MODIFIED : ---------------------------------------------------------------------------- */ private int MI_icv_get_dim(mi_icv_type *icvp, int cdfid, int varid) -{ /* ARGSUSED */ + /* ARGSUSED */ +{ int oldncopts; /* For saving value of ncopts */ char dimname[MAX_NC_NAME]; /* Dimensions name */ int idim; /* Looping counter for fastest image dims */ @@ -513,7 +517,8 @@ @MODIFIED : ---------------------------------------------------------------------------- */ private int MI_icv_get_dim_conversion(mi_icv_type *icvp, int subsc[]) -{ /* ARGSUSED */ + /* ARGSUSED */ +{ int idim; MI_SAVE_ROUTINE_NAME("MI_icv_get_dim_conversion"); @@ -762,7 +767,8 @@ mi_icv_dimconv_type *dcp, long start[], long count[], void *values, long bufstart[], long bufcount[], void *buffer) -{ /* ARGSUSED */ + /* ARGSUSED */ +{ long buffer_len, values_len; /* Buffer lengths, offsets and indices */ long buffer_off, values_off; long buffer_index, values_index;
--- a/libsrc/image_conversion.c +++ b/libsrc/image_conversion.c @@ -33,9 +33,12 @@ MI_icv_calc_scale @CREATED : July 27, 1992. (Peter Neelin, Montreal Neurological Institute) @MODIFIED : $Log: image_conversion.c,v $ -@MODIFIED : Revision 2.2 1995-02-08 19:01:06 neelin -@MODIFIED : Moved private function declarations from minc_routines.h to appropriate file. +@MODIFIED : Revision 2.3 1995-02-08 19:14:44 neelin +@MODIFIED : More changes for irix 5 lint. @MODIFIED : + * Revision 2.2 1995/02/08 19:01:06 neelin + * Moved private function declarations from minc_routines.h to appropriate file. + * * Revision 2.1 1994/12/09 09:12:30 neelin * Added test in miicv_detach to make sure that icv is attached before * detaching it. @@ -77,7 +80,7 @@ ---------------------------------------------------------------------------- */ #ifndef lint -static char rcsid[] = "$Header: /private-cvsroot/minc/libsrc/image_conversion.c,v 2.2 1995-02-08 19:01:06 neelin Exp $ MINC (MNI)"; +static char rcsid[] = "$Header: /private-cvsroot/minc/libsrc/image_conversion.c,v 2.3 1995-02-08 19:14:44 neelin Exp $ MINC (MNI)"; #endif #include <type_limits.h> @@ -999,7 +1002,8 @@ @MODIFIED : ---------------------------------------------------------------------------- */ private int MI_icv_get_norm(mi_icv_type *icvp, int cdfid, int varid) -{ /* ARGSUSED */ + /* ARGSUSED */ +{ int oldncopts; /* For saving value of ncopts */ int vid[2]; /* Variable ids for max and min */ double *immptr[2]; /* Pointers to imgmax and imgmin */
--- a/libsrc/netcdf_convenience.c +++ b/libsrc/netcdf_convenience.c @@ -34,9 +34,12 @@ MI_vcopy_action @CREATED : July 27, 1992. (Peter Neelin, Montreal Neurological Institute) @MODIFIED : $Log: netcdf_convenience.c,v $ -@MODIFIED : Revision 2.4 1995-02-08 19:01:06 neelin -@MODIFIED : Moved private function declarations from minc_routines.h to appropriate file. +@MODIFIED : Revision 2.5 1995-02-08 19:14:44 neelin +@MODIFIED : More changes for irix 5 lint. @MODIFIED : + * Revision 2.4 1995/02/08 19:01:06 neelin + * Moved private function declarations from minc_routines.h to appropriate file. + * * Revision 2.3 1995/01/24 08:34:11 neelin * Added optional tempfile argument to miexpand_file. * @@ -72,10 +75,14 @@ ---------------------------------------------------------------------------- */ #ifndef lint -static char rcsid[] = "$Header: /private-cvsroot/minc/libsrc/netcdf_convenience.c,v 2.4 1995-02-08 19:01:06 neelin Exp $ MINC (MNI)"; +static char rcsid[] = "$Header: /private-cvsroot/minc/libsrc/netcdf_convenience.c,v 2.5 1995-02-08 19:14:44 neelin Exp $ MINC (MNI)"; #endif #include <minc_private.h> +#ifdef unix +#include <unistd.h> +#include <sys/wait.h> +#endif /* Private functions */ private int execute_decompress_command(char *command, char *infile, @@ -1192,7 +1199,8 @@ ---------------------------------------------------------------------------- */ private int MI_vcopy_action(int ndims, long start[], long count[], long nvalues, void *var_buffer, void *caller_data) -{ /* ARGSUSED */ + /* ARGSUSED */ +{ mi_vcopy_type *ptr; /* Pointer to data from micopy_var_values */ MI_SAVE_ROUTINE_NAME("MI_vcopy_action");
--- a/libsrc/value_conversion.c +++ b/libsrc/value_conversion.c @@ -13,9 +13,12 @@ MI_var_action @CREATED : July 27, 1992. (Peter Neelin, Montreal Neurological Institute) @MODIFIED : $Log: value_conversion.c,v $ -@MODIFIED : Revision 2.1 1995-02-08 19:01:06 neelin -@MODIFIED : Moved private function declarations from minc_routines.h to appropriate file. +@MODIFIED : Revision 2.2 1995-02-08 19:14:44 neelin +@MODIFIED : More changes for irix 5 lint. @MODIFIED : + * Revision 2.1 1995/02/08 19:01:06 neelin + * Moved private function declarations from minc_routines.h to appropriate file. + * * Revision 2.0 1994/09/28 10:38:21 neelin * Release of minc version 0.2 * @@ -48,7 +51,7 @@ ---------------------------------------------------------------------------- */ #ifndef lint -static char rcsid[] = "$Header: /private-cvsroot/minc/libsrc/value_conversion.c,v 2.1 1995-02-08 19:01:06 neelin Exp $ MINC (MNI)"; +static char rcsid[] = "$Header: /private-cvsroot/minc/libsrc/value_conversion.c,v 2.2 1995-02-08 19:14:44 neelin Exp $ MINC (MNI)"; #endif #include <type_limits.h> @@ -219,7 +222,8 @@ ---------------------------------------------------------------------------- */ private int MI_var_action(int ndims, long var_start[], long var_count[], long nvalues, void *var_buffer, void *caller_data) -{ /* ARGSUSED */ + /* ARGSUSED */ +{ mi_varaccess_type *ptr; /* Pointer to data from MI_varaccess */ int status; /* Status returned by function call */