Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
games
luola
luola-missing-code.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File luola-missing-code.patch of Package luola
diff -Naur luola-1.3.0-old//tools/archive.c luola-1.3.0/tools/archive.c --- luola-1.3.0-old//tools/archive.c 2009-10-15 23:58:40.000000000 +0800 +++ luola-1.3.0/tools/archive.c 2009-10-16 00:00:40.000000000 +0800 @@ -47,14 +47,14 @@ fp=fopen(file,"w"); if(fp==NULL) { printf("Error ! Could not open file \"%s\" for writing !\n",file); - return; + return 1; } buffer=(Uint8*)malloc(1024); /* Buffer size */ while(copied<len) { if(len-copied<1024) toread=len-copied; else toread=1024; read=SDL_RWread(rw,buffer,1,toread); if(read<toread) { - printf("Error ! Read only %d bytes when we were supposed to read %d bytes !\n"); + printf("Error ! Read only %d bytes when we were supposed to read %d bytes !\n",read,toread); return 1; } fwrite(buffer,1,read,fp); diff -Naur luola-1.3.0-old//tools/im_vwing.c luola-1.3.0/tools/im_vwing.c --- luola-1.3.0-old//tools/im_vwing.c 2009-10-15 23:58:40.000000000 +0800 +++ luola-1.3.0/tools/im_vwing.c 2009-10-16 00:03:48.000000000 +0800 @@ -26,6 +26,11 @@ #include <stdio.h> #include <ctype.h> +#include <string.h> +#include <stdio.h> +#include <unistd.h> +#include <sys/socket.h> + #include "im_vwing.h" /* Buffer to hold the loaded level */ diff -Naur luola-1.3.0-old//tools/lconf2bin.c luola-1.3.0/tools/lconf2bin.c --- luola-1.3.0-old//tools/lconf2bin.c 2009-10-15 23:58:40.000000000 +0800 +++ luola-1.3.0/tools/lconf2bin.c 2009-10-16 00:06:47.000000000 +0800 @@ -89,6 +89,7 @@ len+=3; /* Done */ *size+=len; + return 0; } /* Convert the override block into binary datastream */ @@ -179,6 +180,7 @@ len+=3; /* Done */ *size+=len; + return 0; } /* Convert the objects block into binary datastream */ @@ -212,7 +214,7 @@ len+=3; /* Done */ *size+=len; - + return 0; } /* Spit out the palette block */ @@ -225,6 +227,7 @@ /* Data */ SDL_RWwrite(rw,&block->entries,1,256); *size+=len+3; + return 0; } /* Pack up the icon into an SBMP */ @@ -312,5 +315,6 @@ printf("Icon block length: %d (+3 bytes)\n",len); #endif *size+=len+3; + return 0; }
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