fix compiler warnings in Xprint/ps/PsFonts.c
This commit is contained in:
parent
1abc7f96ed
commit
cf6169f9e9
|
@ -286,9 +286,8 @@ char *getFontFilename(FontPtr pFont)
|
||||||
const char *dlfnam;
|
const char *dlfnam;
|
||||||
FILE *file;
|
FILE *file;
|
||||||
struct stat statb;
|
struct stat statb;
|
||||||
int count, i, status;
|
|
||||||
char buf[512];
|
char buf[512];
|
||||||
char *front, *end, *fn;
|
char *front, *fn;
|
||||||
char font_dir_fname[PATH_MAX], /* Full path of fonts.dir */
|
char font_dir_fname[PATH_MAX], /* Full path of fonts.dir */
|
||||||
font_file_fname[PATH_MAX]; /* Name of font file (excluding path) */
|
font_file_fname[PATH_MAX]; /* Name of font file (excluding path) */
|
||||||
|
|
||||||
|
@ -592,7 +591,6 @@ PsFontTypeInfoRec *PsCreateFontTypeInfoRec(DrawablePtr pDrawable, FontPtr pFont)
|
||||||
{
|
{
|
||||||
char *dlfnam;
|
char *dlfnam;
|
||||||
PsFontTypeInfoRec *rec;
|
PsFontTypeInfoRec *rec;
|
||||||
char *psname;
|
|
||||||
|
|
||||||
if (!(dlfnam = PsGetFontName(pFont)))
|
if (!(dlfnam = PsGetFontName(pFont)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue