[libvirt] [PATCH 16/30] rpc/: Remove spaces after casts

Ján Tomko jtomko at redhat.com
Thu Apr 26 07:50:25 UTC 2018


On Wed, Apr 25, 2018 at 03:24:53PM +0200, Martin Kletzander wrote:
>Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
>---
> src/rpc/virnetclientstream.c  | 4 ++--
> src/rpc/virnetserverclient.c  | 2 +-
> src/rpc/virnetserverprogram.c | 2 +-
> src/rpc/virnetsocket.c        | 6 +++---
> 4 files changed, 7 insertions(+), 7 deletions(-)
>
>diff --git a/src/rpc/virnetserverclient.c b/src/rpc/virnetserverclient.c
>index b373ca1a8b48..f3bc0a48548f 100644
>--- a/src/rpc/virnetserverclient.c
>+++ b/src/rpc/virnetserverclient.c
>@@ -472,7 +472,7 @@ virNetServerClientPtr virNetServerClientNew(unsigned long long id,
> #endif
>         );
>
>-    if ((now = time(NULL)) == (time_t) - 1) {
>+    if ((now = time(NULL)) == (time_t)- 1) {

Please also remove the space between - and 1.

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano

>         virReportSystemError(errno, "%s", _("failed to get current time"));
>         return NULL;
>     }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180426/e7419f10/attachment-0001.sig>


More information about the libvir-list mailing list