This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster: STABLE3 - rgmanager: Fix build warnings in msg_socket.c
- From: Lon Hohberger <lon at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Mon, 22 Jun 2009 13:32:45 +0000 (UTC)
- Subject: cluster: STABLE3 - rgmanager: Fix build warnings in msg_socket.c
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=8b7d32325e94ca7452c21449a319faf545690585
Commit: 8b7d32325e94ca7452c21449a319faf545690585
Parent: 9aed96847fc8c4e8fbd5ff4c868d2a8e54b084a6
Author: Lon Hohberger <lhh@redhat.com>
AuthorDate: Mon Jun 15 15:57:22 2009 -0400
Committer: Lon Hohberger <lhh@redhat.com>
CommitterDate: Mon Jun 22 09:32:02 2009 -0400
rgmanager: Fix build warnings in msg_socket.c
Signed-off-by: Lon Hohberger <lhh@redhat.com>
---
rgmanager/src/clulib/msg_socket.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/rgmanager/src/clulib/msg_socket.c b/rgmanager/src/clulib/msg_socket.c
index 6665b56..77de352 100644
--- a/rgmanager/src/clulib/msg_socket.c
+++ b/rgmanager/src/clulib/msg_socket.c
@@ -1,10 +1,10 @@
#define _MESSAGE_BUILD
-#include <message.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
+#include <message.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/stat.h>
@@ -181,7 +181,7 @@ sock_msg_fd_isset(msgctx_t *ctx, fd_set *fds)
}
-int
+static int
sock_msg_fd_clr(msgctx_t *ctx, fd_set *fds)
{
errno = EINVAL;
@@ -268,7 +268,7 @@ sock_msg_receive(msgctx_t *ctx, void *msg, size_t maxlen, int timeout)
If the speficied node is 0, this connects via the socket in
/var/run/cluster...
*/
-int
+static int
sock_msg_open(int type, int nodeid, int port, msgctx_t *ctx, int timeout)
{
errno = EINVAL;
@@ -289,7 +289,7 @@ sock_msg_open(int type, int nodeid, int port, msgctx_t *ctx, int timeout)
/**
With a socket, the O/S cleans up the buffers for us.
*/
-int
+static int
sock_msg_close(msgctx_t *ctx)
{
errno = EINVAL;
@@ -394,7 +394,7 @@ sock_msg_init(msgctx_t *ctx)
}
-void
+static void
sock_msg_print(msgctx_t *ctx)
{
printf("Socket Message Context; fd = %d\n", ctx->u.local_info.sockfd);