[Wine-patches] server: Fix a compiler warning.
Alexander Morozov
=?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Ср Янв 21 12:56:15 MSK 2009
Патч убирает предупреждение компилятора:
device.c: In function 'req_get_device_name':
device.c:571: warning: suggest parentheses around assignment used as truth
value
----------- следующая часть -----------
From 6c1ebf8b76f02eb6d15c86d72145e7b0c685928a Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Wed, 21 Jan 2009 12:50:37 +0300
Subject: [PATCH] server: Fix a compiler warning.
---
server/device.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/server/device.c b/server/device.c
index a43c9b6..acfcd2b 100644
--- a/server/device.c
+++ b/server/device.c
@@ -568,7 +568,7 @@ DECL_HANDLER(get_device_name)
if (!(device = (struct device *)get_handle_obj( current->process, req->handle, 0, &device_ops )))
return;
- if (device_name = get_object_name( &device->obj, &device_name_len ))
+ if ((device_name = get_object_name( &device->obj, &device_name_len )))
{
if (device_name_len <= get_reply_max_size())
set_reply_data( device_name, device_name_len );
--
1.6.0.2.GIT
Подробная информация о списке рассылки Wine-patches