diff options
author | Karl Ramm <kcr@mit.edu> | 2008-01-21 07:57:32 +0000 |
---|---|---|
committer | Karl Ramm <kcr@mit.edu> | 2008-01-21 07:57:32 +0000 |
commit | ee442551e1531712226a3a3ba26afff466100bb5 (patch) | |
tree | d7907b07baecce7abe3940bec566b3bf56596f2f /zwgc/X_fonts.c | |
parent | e6fb0737027ee97d911e8d507b1db37446067d10 (diff) |
passes gcc -Wall with no warnings other than des cryppt C_block sadness and getsid problem
Diffstat (limited to 'zwgc/X_fonts.c')
-rw-r--r-- | zwgc/X_fonts.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/zwgc/X_fonts.c b/zwgc/X_fonts.c index 95e21d5..0d8e2b7 100644 --- a/zwgc/X_fonts.c +++ b/zwgc/X_fonts.c @@ -231,9 +231,9 @@ complete_get_fontst(Display *dpy, char *family,*fontname; XFontStruct *fontst; - if (family=get_family(style,substyle)) - if (fontname=get_fontname(family,size,face)) - if (fontst=get_fontst(dpy,fontname)) + if ((family=get_family(style,substyle))) + if ((fontname=get_fontname(family,size,face))) + if ((fontst=get_fontst(dpy,fontname))) return(fontst); /* If any part fails, */ return(NULL); @@ -259,16 +259,16 @@ get_font(Display *dpy, if (size == SPECIAL_SIZE) { /* attempt to process @font explicitly */ - if (fontst=get_fontst(dpy,substyle)) + if ((fontst = get_fontst(dpy, substyle))) return(fontst); } else { - if (family=get_family(style,substyle)) { - if (fontname=get_fontname(family,size,face)) - if (fontst=get_fontst(dpy,fontname)) + if ((family = get_family(style, substyle))) { + if ((fontname = get_fontname(family, size,face))) + if ((fontst = get_fontst(dpy, fontname))) return(fontst); } else { - if (fontname=get_fontname(substyle,size,face)) - if (fontst=get_fontst(dpy,fontname)) + if ((fontname = get_fontname(substyle, size, face))) + if ((fontst = get_fontst(dpy, fontname))) return(fontst); } @@ -276,17 +276,17 @@ get_font(Display *dpy, of substyle being the fontfamily didn't happen, either. */ fontst=NULL; - if (!(fontst=complete_get_fontst(dpy,style,"text",size,face))) - if (!(fontst=complete_get_fontst(dpy,"default",substyle,size,face))) - if (!(fontst=complete_get_fontst(dpy,"default","text",size,face))) - if (fontname=get_fontname("default",size,face)) - fontst=get_fontst(dpy,fontname); + if (!(fontst = complete_get_fontst(dpy,style,"text",size,face))) + if (!(fontst = complete_get_fontst(dpy,"default",substyle,size,face))) + if (!(fontst = complete_get_fontst(dpy,"default","text",size,face))) + if ((fontname = get_fontname("default",size,face))) + fontst = get_fontst(dpy,fontname); if (fontst) return(fontst); } /* If all else fails, try fixed */ - if (fontst=get_fontst(dpy,"fixed")) return(fontst); + if ((fontst=get_fontst(dpy,"fixed"))) return(fontst); /* No fonts available. Die. */ |