Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
xzgv
xzgv-fixgcc4.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xzgv-fixgcc4.diff of Package xzgv
diff -Nur ../xzgv-0.8.orig/src/logoconv.c ./src/logoconv.c --- ../xzgv-0.8.orig/src/logoconv.c 2000-10-07 15:25:25.000000000 +0200 +++ ./src/logoconv.c 2005-07-01 15:44:01.000000000 +0200 @@ -10,6 +10,7 @@ #include <stdio.h> #include <stdlib.h> #include <ctype.h> +#include <string.h> /* we take an extremely generous outlook - anything other than a decimal @@ -45,7 +46,7 @@ int main(void) { -unsigned char buf[128]; +char buf[128]; int w,h,x,y,c; fgets(buf,sizeof(buf),stdin); diff -Nur ../xzgv-0.8.orig/src/main.c ./src/main.c --- ../xzgv-0.8.orig/src/main.c 2003-09-16 15:49:01.000000000 +0200 +++ ./src/main.c 2005-07-01 15:40:35.000000000 +0200 @@ -380,7 +380,7 @@ unsigned char *bmap; int w,h; xzgv_image *ret; -unsigned char buf[4]; +char buf[4]; FILE *in; int iret; int make_image=0; @@ -4587,7 +4587,7 @@ unsigned char *ptr=logo_data; /* invert it */ -for(f=0;f<siz;f++) *ptr++=255-*ptr; +for(f=0;f<siz;f++,ptr++) *ptr=255-*ptr; /* ok, now kludge it :-) - the black right/bottom edge turns to white, * which is too bright. Make that the same as the grey line above/left of it. diff -Nur ../xzgv-0.8.orig/src/readmrf.c ./src/readmrf.c --- ../xzgv-0.8.orig/src/readmrf.c 2005-07-01 15:35:32.000000000 +0200 +++ ./src/readmrf.c 2005-07-01 15:41:40.000000000 +0200 @@ -75,7 +75,7 @@ fread(buf,1,13,in); -if(strncmp(buf,"MRF1",4)!=0) +if(strncmp((char *) buf,"MRF1",4)!=0) return(0); if(buf[12]!=0) diff -Nur ../xzgv-0.8.orig/src/readprf.c ./src/readprf.c --- ../xzgv-0.8.orig/src/readprf.c 2005-07-01 15:35:32.000000000 +0200 +++ ./src/readprf.c 2005-07-01 15:42:16.000000000 +0200 @@ -128,7 +128,7 @@ if((in=fopen(filename,"rb"))==NULL) return(0); -if(fread(buf,1,13,in)!=13 || strncmp(buf,"PRF1",4)!=0) +if(fread(buf,1,13,in)!=13 || strncmp((char *) buf,"PRF1",4)!=0) { fclose(in); return(0); diff -Nur ../xzgv-0.8.orig/src/resizepic.c ./src/resizepic.c --- ../xzgv-0.8.orig/src/resizepic.c 2000-10-07 15:51:43.000000000 +0200 +++ ./src/resizepic.c 2005-07-01 15:43:00.000000000 +0200 @@ -6,6 +6,7 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include "resizepic.h"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor