X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fnfs%2Fsocket.c;h=ea5ed9859507e4dde0453ac5cf4d1a12298b3b4d;hp=ccdd18df565eda924de92612fce4f9ef0c5a4d27;hb=6abc867fce8c3eba40eb26092d31e34b47dd9165;hpb=a40b318e7a07a452ae7456053727bd11b2fa49b4 diff --git a/ccan/nfs/socket.c b/ccan/nfs/socket.c index ccdd18df..ea5ed985 100644 --- a/ccan/nfs/socket.c +++ b/ccan/nfs/socket.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) by Ronnie Sahlberg 2010 This program is free software; you can redistribute it and/or modify @@ -48,7 +48,7 @@ int rpc_which_events(struct rpc_context *rpc) if (rpc->is_connected == 0) { events |= POLLOUT; - } + } if (rpc->outqueue) { events |= POLLOUT; @@ -280,10 +280,10 @@ int rpc_connect_async(struct rpc_context *rpc, const char *server, int port, int rpc_set_error(rpc, "connect() to server failed"); printf("%s\n", rpc->error_string); return -4; - } + } return 0; -} +} int rpc_disconnect(struct rpc_context *rpc, char *error) {