summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-07-07 02:47:06 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-07-07 02:47:06 +0000
commitac2bd47662133c5df764ea82786fcdeba81aeeea (patch)
tree15edbf78c6c185d56c264a8117bc51bfe436b63f
parent8fcf1e628f1e17827f86e61c705fe8166f2c068c (diff)
Bug #2901 <https://bugs.freedesktop.org/show_bug.cgi?id=2901> Patch #2325XORG-6_8_99_903XORG-6_8_99_902XORG-6_8_99_901XORG-6_8_99_900XORG-6_8_99_16XORG-6_8_99_15
<https://bugs.freedesktop.org/attachment.cgi?id=2325> Avoid 38 gcc-3.4.2 warnings: suggest parentheses around assignment used as truth value suggest explicit braces to avoid ambiguous `else' suggest parentheses around && within || suggest parentheses around arithmetic in operand of ^ "/*" within comment (Peter Breitenlohner) Bug #2901 <https://bugs.freedesktop.org/show_bug.cgi?id=2901> Patch #2326 <https://bugs.freedesktop.org/attachment.cgi?id=2326> This patch removes these 2 gcc-3.4.3 warnings: missing braces around initializer implicit declaration of function `XpOidTrayMediumListHasTray' (Peter Breitenlohner)
-rw-r--r--src/xpapputil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xpapputil.c b/src/xpapputil.c
index afb81e4..aaf918c 100644
--- a/src/xpapputil.c
+++ b/src/xpapputil.c
@@ -40,7 +40,7 @@ XpauContext *XpauGetContext( const char *printername )
if( XpuGetPrinter(printername, &pdpy, &pcontext) != 1 )
return NULL;
- if( context = (XpauContext *)malloc(sizeof(XpauContext)) )
+ if( (context = (XpauContext *)malloc(sizeof(XpauContext))) )
{
memset(context, 0, sizeof(XpauContext));