View | Details | Raw Unified | Return to bug 78687
Collapse All | Expand All

(-)urt/files/patch-cnv+gif2rle.c (+11 lines)
Line 0 Link Here
1
--- cnv/giftorle.c.orig	Thu Mar 10 20:04:40 2005
2
+++ cnv/giftorle.c	Thu Mar 10 20:07:12 2005
3
@@ -278,7 +278,7 @@
4
 	max_code_size = 2*clear_code;
5
 	max_code = clear_code+2;
6
 
7
-	GetCode(fd,NULL,TRUE);
8
+	GetCode(fd,0,TRUE);
9
 		
10
 	fresh=TRUE;
11
 
(-)urt/files/patch-cnv+rletops.c (+30 lines)
Line 0 Link Here
1
--- cnv/rletops.c.orig	Thu Mar 10 20:09:59 2005
2
+++ cnv/rletops.c	Thu Mar 10 20:13:29 2005
3
@@ -74,7 +74,7 @@
4
     float 	heightinch = 3.0, 
5
     		center = 3.25, 
6
     		aspect = 1.0;
7
-    int 	y, nrow, nscan, i, pix, dummy;
8
+    int 	nrow, nscan, i, pix, dummy;
9
     float 	x1, y1, x2, y2, widthinch;
10
     unsigned char ** scan;
11
     unsigned char * buffer;
12
@@ -154,8 +154,7 @@
13
     y2 = y1 + heightinch;
14
     prologue(outfile,sflag,nscan,nrow,x1,y1,x2,y2);    
15
 
16
-    while ( (y = rle_getrow( &hdr, scan )) <=
17
-	    hdr.ymax )
18
+    while ( ( rle_getrow( &hdr, scan )) <= hdr.ymax )
19
     {
20
 	if (gencps) {
21
 	    /* generate a color line */
22
@@ -231,7 +230,7 @@
23
 FILE *outfile;
24
 unsigned char p;
25
 {
26
-    static npixo = 0;
27
+    static int npixo = 0;
28
     static char tohex[] = "0123456789ABCDEF";
29
 
30
     putc(tohex[(p>>4)&0xF],outfile);
(-)urt/files/patch-cnv+rletorla.c (+20 lines)
Line 0 Link Here
1
--- cnv/rletorla.c.orig	Thu Mar 10 23:41:56 2005
2
+++ cnv/rletorla.c	Thu Mar 10 23:39:39 2005
3
@@ -312,7 +312,7 @@
4
    U_CHAR	*buf;
5
    int		*offset;
6
    int		width, height;
7
-   int		scan, x, y;
8
+   int		scan, x;
9
    short	len;
10
    long		offptr;
11
 /*
12
@@ -348,7 +348,7 @@
13
       exit(-1);
14
       }
15
    for (scan = 0; scan < height; scan++) {
16
-      y = rle_getrow(&rle_dflt_hdr, scanline);
17
+      (void)rle_getrow(&rle_dflt_hdr, scanline);
18
       switch (visual) {
19
          case GRAYSCALE:	/* 8 bits without colormap */
20
                red   = scanline[0];
(-)urt/files/patch-cnv+rletovcr.c (+24 lines)
Line 0 Link Here
1
--- cnv/rletovcr.c.orig	Thu Mar 10 20:17:23 2005
2
+++ cnv/rletovcr.c	Thu Mar 10 20:20:49 2005
3
@@ -83,11 +83,10 @@
4
 static char COMMENT[80];   /* comment! */
5
 #endif
6
     
7
-WriteVICARHeader(fd, width, height, BandsPerPixel)
8
+void WriteVICARHeader(fd, width, height, BandsPerPixel)
9
 FILE *fd;
10
 int width, height, BandsPerPixel;
11
 {
12
-    int pad;
13
     char *buffer, *bp;
14
 
15
     /*
16
@@ -254,7 +253,7 @@
17
 int argc;
18
 char *argv[];
19
 {
20
-    char *infname = NULL, outfname = NULL;
21
+    char *infname = NULL, *outfname = NULL;
22
     int oflag = 0;
23
     unsigned char *VICARImage;
24
     rle_hdr the_hdr;
(-)urt/files/patch-cnv+vcrtorele.c (+81 lines)
Line 0 Link Here
1
--- cnv/vcrtorle.c.orig	Thu Mar 10 20:22:42 2005
2
+++ cnv/vcrtorle.c	Thu Mar 10 20:30:16 2005
3
@@ -94,9 +94,6 @@
4
 
5
 
6
 static int VERBOSE = 0;
7
-static char *RoutineName;
8
-
9
-static long int VICARpos;	/* Position in file for reading w/o fseek. */
10
 
11
 static void FatalError(s)
12
  char *s;
13
@@ -109,20 +106,10 @@
14
 static int  LBLSIZE;       /* size of header, must be int mult of NS */
15
 static char FORMAT[80];    /* 'BYTE' is OK */
16
 static char TYPE[80];      /* 'IMAGE' is OK */
17
-static int  BUFSIZe;       /* integer multiple of NS ? */
18
-static int  DIM;           /* == 3? */
19
-static int  EOL;           /* == 0? */
20
-static int  RECSIZE;       /* == LBLSIZE? */
21
 static char ORG[80];       /* `BSQ` is OK */
22
 static int  NL;            /* height */
23
 static int  NS;            /* width */ 
24
 static int  NB;            /* samples per pixel? */
25
-static int  N1;            /* == NL? */ 
26
-static int  N2;            /* == NS? */
27
-static int  N3;            /* == NB? */
28
-static int  N4;            /* 0 is OK */
29
-static int  NBB;           /* 0 is OK */ 
30
-static int  NLB;           /* 0 is OK */
31
 static char HOST[80];      /* machine type? */
32
 static char INTFMT[80];    /* integer format? */
33
 static char REALFMT[80];   /* real format? */
34
@@ -218,20 +205,20 @@
35
 
36
 	if (0 == strcmp("FORMAT" ,Name)) {strcpy(FORMAT ,Value); continue;} 
37
 	if (0 == strcmp("TYPE"   ,Name)) {strcpy(TYPE   ,Value); continue;} 
38
-	if (0 == strcmp("BUFSIZ" ,Name)) {BUFSIZe = atoi(Value); continue;}
39
-	if (0 == strcmp("DIM"    ,Name)) {DIM     = atoi(Value); continue;}
40
-	if (0 == strcmp("EOL"    ,Name)) {EOL     = atoi(Value); continue;}
41
-	if (0 == strcmp("RECSIZE",Name)) {RECSIZE = atoi(Value); continue;}
42
+	if (0 == strcmp("BUFSIZ" ,Name)) { (void) atoi(Value); continue;}
43
+	if (0 == strcmp("DIM"    ,Name)) { (void) atoi(Value); continue;}
44
+	if (0 == strcmp("EOL"    ,Name)) { (void) atoi(Value); continue;}
45
+	if (0 == strcmp("RECSIZE",Name)) { (void) atoi(Value); continue;}
46
 	if (0 == strcmp("ORG"    ,Name)) {strcpy(ORG    ,Value); continue;} 
47
 	if (0 == strcmp("NL"     ,Name)) {NL      = atoi(Value); continue;}
48
 	if (0 == strcmp("NS"     ,Name)) {NS      = atoi(Value); continue;}
49
 	if (0 == strcmp("NB"     ,Name)) {NB      = atoi(Value); continue;}
50
-	if (0 == strcmp("N1"     ,Name)) {N1      = atoi(Value); continue;}
51
-	if (0 == strcmp("N2"     ,Name)) {N2      = atoi(Value); continue;}
52
-	if (0 == strcmp("N3"     ,Name)) {N3      = atoi(Value); continue;}
53
-	if (0 == strcmp("N4"     ,Name)) {N4      = atoi(Value); continue;}
54
-	if (0 == strcmp("NBB"    ,Name)) {NBB     = atoi(Value); continue;}
55
-	if (0 == strcmp("NLB"    ,Name)) {NLB     = atoi(Value); continue;}
56
+	if (0 == strcmp("N1"     ,Name)) { (void) atoi(Value); continue;}
57
+	if (0 == strcmp("N2"     ,Name)) { (void) atoi(Value); continue;}
58
+	if (0 == strcmp("N3"     ,Name)) { (void) atoi(Value); continue;}
59
+	if (0 == strcmp("N4"     ,Name)) { (void) atoi(Value); continue;}
60
+	if (0 == strcmp("NBB"    ,Name)) { (void) atoi(Value); continue;}
61
+	if (0 == strcmp("NLB"    ,Name)) { (void) atoi(Value); continue;}
62
 	if (0 == strcmp("HOST"   ,Name)) {strcpy(HOST   ,Value); continue;} 
63
 	if (0 == strcmp("INTFMT" ,Name)) {strcpy(INTFMT ,Value); continue;} 
64
 	if (0 == strcmp("REALFMT",Name)) {strcpy(REALFMT,Value); continue;} 
65
@@ -249,7 +236,6 @@
66
 	n++;
67
     }
68
 	
69
-    VICARpos = n;
70
 }
71
 
72
 /* RLE stuff */
73
@@ -297,7 +283,7 @@
74
     unsigned char *VICARImage;
75
     char *outfname = NULL;
76
     int oflag = 0;
77
-    int x,y,z;
78
+    int y;
79
     long int nread;
80
     rle_hdr the_hdr;
81
     rle_pixel **rows;
(-)urt/files/patch-config::urt (-11 / +3 lines)
Lines 1-5 Link Here
1
--- config/urt.orig	Wed Jul 15 19:47:15 1992
1
--- config/urt.orig	Wed Jul 15 19:47:15 1992
2
+++ config/urt	Wed Jan 12 17:22:42 2005
2
+++ config/urt	Thu Mar 10 23:52:07 2005
3
@@ -1,3 +1,7 @@
3
@@ -1,3 +1,7 @@
4
+# Configuration for HP 9000/300 series running BSD4.3
4
+# Configuration for HP 9000/300 series running BSD4.3
5
+
5
+
Lines 40-54 Link Here
40
 ##define HPUX300CC	HP 9000/300 running HP-UX.
40
 ##define HPUX300CC	HP 9000/300 running HP-UX.
41
 ##define HPUX800CC	HP 9000/800 running HP-UX.
41
 ##define HPUX800CC	HP 9000/800 running HP-UX.
42
 ##define IBMR6000CC	IBM RS6000.
42
 ##define IBMR6000CC	IBM RS6000.
43
@@ -70,14 +74,14 @@
43
@@ -77,7 +81,7 @@
44
 ##define 386IXCC		SVr3 386/ix 2.2
45
 
46
 # You can put any system dependent flags here.
47
-ExtraCFLAGS = 
48
+ExtraCFLAGS =
49
 
50
 # System specific or configuration parameters.  Define according to your
51
 # environment and desires.
52
 
44
 
53
 ##define ABEKAS_PAL	Convert to PAL format in Abekas A60 tool.
45
 ##define ABEKAS_PAL	Convert to PAL format in Abekas A60 tool.
54
 ##define ALL_MAN	Print/install all man pages.
46
 ##define ALL_MAN	Print/install all man pages.
Lines 127-133 Link Here
127
 
119
 
128
 #ifdef FB
120
 #ifdef FB
129
-LIBFB = /usr/brl/lib/libfb.a
121
-LIBFB = /usr/brl/lib/libfb.a
130
+LIBFB = $(LOCALBASE)/lib/libfb.a
122
+LIBFB = $(LOCALBASE)/share/brlcad/lib/libfb.a $(LOCALBASE)/brlcad/lib/libpkg.a
131
 #endif
123
 #endif
132
 
124
 
133
 #ifdef GRINNELL
125
 #ifdef GRINNELL
(-)urt/files/patch-get+getfb.c (+11 lines)
Line 0 Link Here
1
--- get/getfb.c.orig	Mon Mar  7 23:33:32 2005
2
+++ get/getfb.c	Mon Mar  7 23:44:28 2005
3
@@ -47,7 +47,7 @@
4
 	}
5
 
6
 	rle_file = argv[0];
7
-	rle_names( &hdr, hdr.cmd, rle_file );
8
+	rle_names( &hdr, hdr.cmd, rle_file, 0 );
9
         hdr.rle_file = rle_open_f(hdr.cmd, rle_file, "r");
10
 	if( rle_get_setup( &hdr ) < 0 )  {
11
 		fprintf(stderr, "getfb: Error reading setup information\n");
(-)urt/files/patch-get+getx11+XGetHClrs.c (+8 lines)
Line 0 Link Here
1
--- get/getx11/XGetHClrs.c.orig	Sun Jan 30 15:48:57 2005
2
+++ get/getx11/XGetHClrs.c	Sun Jan 30 15:49:38 2005
3
@@ -1,5 +1,4 @@
4
 #ifndef XLIBINT_H_NOT_AVAILABLE
5
-#include <X11/copyright.h>
6
 
7
 /* $XConsortium: XGetHClrs.c,v 11.10 88/09/06 16:07:50 martin Exp $ */
8
 /* Copyright    Massachusetts Institute of Technology    1986	*/
(-)urt/files/patch-get+makefile.src (+11 lines)
Line 0 Link Here
1
--- get/makefile.src.orig	Thu Feb 27 21:13:33 1992
2
+++ get/makefile.src	Tue Mar  8 00:10:02 2005
3
@@ -54,7 +54,7 @@
4
 #ifdef FB
5
 # getfb - get to a BRL libfb display
6
 #@getfb.out: getfb.c
7
-#@	$(CC) $(CFLAGS) $*.c $(LIBS) $(LIBFB) -lm -o $*.new
8
+#@	$(CC) $(CFLAGS) $(INCFB) $*.c $(LIBS) $(LIBFB) $(LIBX11) -lm -o $*.new
9
 #@	mv $*.new $@
10
 #endif
11
 
(-)urt/files/patch-get::getx11::XGetHClrs.c (-8 lines)
Lines 1-8 Link Here
1
--- get/getx11/XGetHClrs.c.orig	Wed Jan 12 17:03:11 2005
2
+++ get/getx11/XGetHClrs.c	Wed Jan 12 17:06:40 2005
3
@@ -1,5 +1,4 @@
4
 #ifndef XLIBINT_H_NOT_AVAILABLE
5
-#include <X11/copyright.h>
6
 
7
 /* $XConsortium: XGetHClrs.c,v 11.10 88/09/06 16:07:50 martin Exp $ */
8
 /* Copyright    Massachusetts Institute of Technology    1986	*/
(-)urt/files/patch-lib+inv_cmap.c (+11 lines)
Line 0 Link Here
1
--- lib/inv_cmap.c.orig	Thu Mar 10 21:28:37 2005
2
+++ lib/inv_cmap.c	Thu Mar 10 21:29:06 2005
3
@@ -42,7 +42,7 @@
4
 static long cbinc, cginc, crinc;
5
 static unsigned long *gdp, *rdp, *cdp;
6
 static unsigned char *grgbp, *rrgbp, *crgbp;
7
-static gstride, rstride;
8
+static int gstride, rstride;
9
 static long x, xsqr, colormax;
10
 static int cindex;
11
 #ifdef INSTRUMENT_IT
(-)urt/files/patch-lib::scanargs.c (+15 lines)
Line 0 Link Here
1
--- lib/scanargs.c.orig	Thu Mar 10 21:23:06 2005
2
+++ lib/scanargs.c	Thu Mar 10 21:25:26 2005
3
@@ -128,10 +128,10 @@
4
 va_list argl;
5
 {
6
 
7
-    register    check;			/* check counter to be sure all argvs
8
+    register int  check;		/* check counter to be sure all argvs
9
 					   are processed */
10
     register CONST_DECL char  *cp;
11
-    register    cnt;
12
+    register int  cnt;
13
     int	    optarg = 0;			/* where optional args start */
14
     int	    nopt = 0;
15
     char    tmpflg,			/* temp flag */
(-)urt/files/patch-tools+avg4.c (+11 lines)
Line 0 Link Here
1
--- tools/avg4.c.orig	Thu Mar 10 20:47:48 2005
2
+++ tools/avg4.c	Thu Mar 10 20:48:11 2005
3
@@ -34,7 +34,7 @@
4
 #include <stdio.h>
5
 #include "rle.h"
6
 
7
-static bit_count[16] = {0, 63, 63, 127, 63, 127, 127,
8
+static int bit_count[16] = {0, 63, 63, 127, 63, 127, 127,
9
     192, 63, 127, 127, 192, 127, 192, 192, 255};
10
 
11
 void
(-)urt/files/patch-tools+mcut.c (+20 lines)
Line 0 Link Here
1
--- tools/mcut.c.orig	Thu Mar 10 20:54:44 2005
2
+++ tools/mcut.c	Thu Mar 10 20:56:44 2005
3
@@ -791,7 +791,7 @@
4
 		    TRACE( tmp_cb, cb_list )
5
 		    {
6
 			register color_t *newcol = &tmp_cb->color;
7
-			register newdist = DISTANCE( ref_col, *newcol );
8
+			register int newdist = DISTANCE( ref_col, *newcol );
9
 
10
 			if ( newdist < dist )
11
 			{
12
@@ -963,7 +963,7 @@
13
 cmp_radices ( h1, h2 )
14
 histogram_t **h1, **h2;
15
 {
16
-    register c1 = -1, c2 = -1;
17
+    register int c1 = -1, c2 = -1;
18
 
19
     if ( *h1 )
20
 	c1 = (*h1)->color & mask;
(-)urt/files/patch-tools+mergechan.c (+11 lines)
Line 0 Link Here
1
--- tools/mergechan.c.orig	Thu Mar 10 20:58:34 2005
2
+++ tools/mergechan.c	Thu Mar 10 21:00:31 2005
3
@@ -79,7 +79,7 @@
4
 	    {
5
 		fprintf( stderr,
6
 		 "%s: Images %d and %d are both from the standard input\n",
7
-			 stdin_used, i );
8
+			argv[0], stdin_used, i );
9
 		exit( -1 );
10
 	    }
11
     }
(-)urt/files/patch-tools+rlegrid.c (+19 lines)
Line 0 Link Here
1
--- tools/rlegrid.c.orig	Thu Mar 10 21:01:59 2005
2
+++ tools/rlegrid.c	Thu Mar 10 21:03:02 2005
3
@@ -65,7 +65,7 @@
4
     rle_op **scanraw[2];	/* space for two raw scanline buffers */
5
     rle_op *p, *q;
6
     int    *nrawp[2];
7
-    unsigned char fg, bg;
8
+    unsigned char fg;
9
 
10
     out_hdr = *rle_hdr_init( NULL );
11
 
12
@@ -81,7 +81,6 @@
13
        exit( 1 );
14
 
15
     fg = fg_color;
16
-    bg = bg_color;
17
 
18
     outfile = rle_open_f( cmd_name( argv ), outfname, "w" );
19
     
(-)urt/files/patch-tools+rlehdr.c (+11 lines)
Line 0 Link Here
1
--- tools/rlehdr.c.orig	Thu Mar 10 21:04:49 2005
2
+++ tools/rlehdr.c	Thu Mar 10 21:13:14 2005
3
@@ -289,7 +289,7 @@
4
 		{
5
 		    if ( (cp = index( the_comment, '\n' )) )
6
 			printf( ", %s=%.*s", *comment_names,
7
-				cp - the_comment - 1, the_comment );
8
+				*comment_names,cp - the_comment - 1, the_comment );
9
 		    else
10
 			printf( ", %s=%s", *comment_names, the_comment );
11
 		    break;
(-)urt/files/patch-tools+rleinterp.c (+13 lines)
Line 0 Link Here
1
--- tools/rleinterp.c.orig	Thu Mar 10 21:14:52 2005
2
+++ tools/rleinterp.c	Thu Mar 10 21:15:40 2005
3
@@ -48,8 +48,8 @@
4
 		nom_sortie[BUFSIZ],
5
     		extension[80] ,
6
     	       *basenom, *rep ;
7
-    int  i, ni, n, nbimage=1;
8
-    int  rle_err, width, y, x ;
9
+    int  i, n, nbimage=1;
10
+    int  width, y, x ;
11
     int  iflag1 = 0 , iflag2 = 0, oflag = 0, fd ;
12
     double alpha, beta ;
13
     FILE        * outfile;
(-)urt/files/patch-tools+rlepatch.c (+20 lines)
Line 0 Link Here
1
--- tools/rlepatch.c.orig	Thu Mar 10 21:17:33 2005
2
+++ tools/rlepatch.c	Thu Mar 10 21:18:56 2005
3
@@ -46,7 +46,7 @@
4
     rle_pixel ** im_rows, **patch_rows, ** outrows;
5
     int stdin_used = 0;
6
     int patches = 0, oflag = 0, i, y, c, xlen, width;
7
-    int rle_cnt, rle_err;
8
+    int rle_cnt;
9
 
10
     im_hdr = *rle_hdr_init( NULL );
11
     out_hdr = *rle_hdr_init( NULL );
12
@@ -86,7 +86,7 @@
13
     }
14
 
15
     for ( rle_cnt = 0;
16
-	  (rle_err = rle_get_setup( &im_hdr )) == RLE_SUCCESS;
17
+	  rle_get_setup( &im_hdr ) == RLE_SUCCESS;
18
 	  rle_cnt++ )
19
     {
20
 	/* Get the patch files set up */

Return to bug 78687