提交 7fa91525 编写于 作者: M Martin Kletzander

Use K&R style for curly braces in src/rpc/

Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
上级 daedff47
/* /*
* virnetserver.c: generic network RPC server * virnetserver.c: generic network RPC server
* *
* Copyright (C) 2006-2012 Red Hat, Inc. * Copyright (C) 2006-2012, 2014 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange * Copyright (C) 2006 Daniel P. Berrange
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
...@@ -850,7 +850,8 @@ static void ...@@ -850,7 +850,8 @@ static void
virNetServerSignalEvent(int watch, virNetServerSignalEvent(int watch,
int fd ATTRIBUTE_UNUSED, int fd ATTRIBUTE_UNUSED,
int events ATTRIBUTE_UNUSED, int events ATTRIBUTE_UNUSED,
void *opaque) { void *opaque)
{
virNetServerPtr srv = opaque; virNetServerPtr srv = opaque;
siginfo_t siginfo; siginfo_t siginfo;
size_t i; size_t i;
...@@ -1021,7 +1022,8 @@ int virNetServerSetTLSContext(virNetServerPtr srv, ...@@ -1021,7 +1022,8 @@ int virNetServerSetTLSContext(virNetServerPtr srv,
static void virNetServerAutoShutdownTimer(int timerid ATTRIBUTE_UNUSED, static void virNetServerAutoShutdownTimer(int timerid ATTRIBUTE_UNUSED,
void *opaque) { void *opaque)
{
virNetServerPtr srv = opaque; virNetServerPtr srv = opaque;
virObjectLock(srv); virObjectLock(srv);
......
/* /*
* virnetserverclient.c: generic network RPC server client * virnetserverclient.c: generic network RPC server client
* *
* Copyright (C) 2006-2013 Red Hat, Inc. * Copyright (C) 2006-2014 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange * Copyright (C) 2006 Daniel P. Berrange
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
...@@ -141,7 +141,8 @@ static int virNetServerClientSendMessageLocked(virNetServerClientPtr client, ...@@ -141,7 +141,8 @@ static int virNetServerClientSendMessageLocked(virNetServerClientPtr client,
* @client: a locked client object * @client: a locked client object
*/ */
static int static int
virNetServerClientCalculateHandleMode(virNetServerClientPtr client) { virNetServerClientCalculateHandleMode(virNetServerClientPtr client)
{
int mode = 0; int mode = 0;
......
/* /*
* virnettlscontext.c: TLS encryption/x509 handling * virnettlscontext.c: TLS encryption/x509 handling
* *
* Copyright (C) 2010-2013 Red Hat, Inc. * Copyright (C) 2010-2014 Red Hat, Inc.
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
...@@ -125,7 +125,8 @@ virNetTLSContextCheckCertFile(const char *type, const char *file, bool allowMiss ...@@ -125,7 +125,8 @@ virNetTLSContextCheckCertFile(const char *type, const char *file, bool allowMiss
static void virNetTLSLog(int level ATTRIBUTE_UNUSED, static void virNetTLSLog(int level ATTRIBUTE_UNUSED,
const char *str ATTRIBUTE_UNUSED) { const char *str ATTRIBUTE_UNUSED)
{
VIR_DEBUG("%d %s", level, str); VIR_DEBUG("%d %s", level, str);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册