Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
ghostscript-library
gimp-print-4.2.7-debug.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gimp-print-4.2.7-debug.dif of Package ghostscript-library
--- gimp-print-4.2.7/src/main/print-lexmark.c +++ gimp-print-4.2.7/src/main/print-lexmark.c 2004-09-23 15:34:46.000000000 +0000 @@ -107,6 +107,7 @@ typedef union { /* Base pointers for e #ifdef DEBUG +# include <stdlib.h> typedef struct testdata { FILE *ifile; int x, y, cols, deep; @@ -114,11 +115,12 @@ typedef struct testdata { char *input_line; } testdata; -const stp_vars_t *dbgfileprn; +stp_vars_t dbgfileprn; int lex_show_lcount, lex_show_length; -const stp_vars_t lex_open_tmp_file(); -const stp_vars_t lex_write_tmp_file(const stp_vars_t ofile, void *data,int length); +stp_vars_t lex_open_tmp_file(void); +void lex_write_tmp_file(const stp_vars_t ofile, void *data,int length); +void lex_tmp_file_deinit(const stp_vars_t file); static void testprint(testdata *td); static void readtestprintline(testdata *td, lexmark_linebufs_t *linebufs); #endif @@ -2725,9 +2727,9 @@ lexmark_write(const stp_vars_t v, /* I #ifdef DEBUG -const stp_vars_t lex_open_tmp_file() { +stp_vars_t lex_open_tmp_file(void) { int i; - const stp_vars_t ofile; + stp_vars_t ofile; char tmpstr[256]; stp_erprintf(" create file !\n"); @@ -2754,8 +2756,8 @@ void lex_tmp_file_deinit(const stp_vars_ fclose(file); } -const stp_vars_t lex_write_tmp_file(const stp_vars_t ofile, void *data,int length) { - fwrite(data, 1, length, ofile); +void lex_write_tmp_file(const stp_vars_t ofile, void *data,int length) { + (void)fwrite(data, 1, length, ofile); } @@ -3049,16 +3051,16 @@ static void testprint(testdata *td) if (td->cols > 5) { td->cols = 7; for (icol=0; icol < td->cols; icol++) { /* we ignor the first color. It is "no dot". */ - linebufs.v[icol] = (char *)malloc((td->x+7)/8); /* allocate the color */ + linebufs.v[icol] = (unsigned char *)malloc((td->x+7)/8); /* allocate the color */ } } else if (td->cols > 4) { td->cols = 5; for (icol=0; icol < td->cols; icol++) { /* we ignor the first color. It is "no dot". */ - linebufs.v[icol] = (char *)malloc((td->x+7)/8); /* allocate the color */ + linebufs.v[icol] = (unsigned char *)malloc((td->x+7)/8); /* allocate the color */ } } else { td->cols = 1; - linebufs.v[0] = (char *)malloc((td->x+7)/8); /* allocate the color */ + linebufs.v[0] = (unsigned char *)malloc((td->x+7)/8); /* allocate the color */ } } else { stp_erprintf("can't open file !\n");
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