fix compiler warnings in Xprint/ps/psout.c

This commit is contained in:
Greg Kroah-Hartman 2006-06-08 11:27:29 -07:00
parent c496a3b9c9
commit 3930da3f62
2 changed files with 5 additions and 4 deletions

View File

@ -683,7 +683,6 @@ void
PsOut_EndFile(PsOutPtr self, int closeFile)
{
char coms[50];
int i;
if (!self)
return;
@ -1592,7 +1591,8 @@ PsOut_BeginPattern(PsOutPtr self, void *tag, int w, int h, PsFillEnum type,
switch(type) {
case PsTile: key[1] = 't'; break;
case PsStip: key[1] = 's'; break;
case PsOpStip: key[1] = 'o'; break; }
case PsOpStip: key[1] = 'o'; break;
default: break; }
S_OutTok(self, key, 0);
S_OutTok(self, "db/PatternType 1 d/PaintType 1 d", 0);
S_OutTok(self, "/TilingType 1 d/BBox[0 0", 0);
@ -1637,7 +1637,8 @@ PsOut_SetPattern(PsOutPtr self, void *tag, PsFillEnum type)
switch(type) {
case PsTile: key[0] = 't'; break;
case PsStip: key[0] = 's'; break;
case PsOpStip: key[0] = 'o'; break; }
case PsOpStip: key[0] = 'o'; break;
default: break; }
S_OutTok(self, key, 0);
S_OutTok(self, "spt", 1);
self->CurColor = PSOUTCOLOR_NOCOLOR;
@ -1663,7 +1664,6 @@ typedef enum PsDownfontFontType_
int
PsOut_DownloadType1(PsOutPtr self, const char *auditmsg, const char *name, const char *fname)
{
int i;
int stt;
char buf[256];
FILE *fp;

View File

@ -267,6 +267,7 @@ extern void S_OutTok(PsOutPtr self, char *tok, int cr);
typedef struct PsOutRec_ *PsOutPtr;
#endif /* USE_PSOUT_PRIVATE */
extern FILE * PsOut_ChangeFile(PsOutPtr self, FILE *fp);
extern PsOutPtr PsOut_BeginFile(FILE *fp, char *title, int orient, int count, int plex,
int res, int wd, int ht, Bool raw);
extern void PsOut_EndFile(PsOutPtr self, int closeFile);