X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fnfs%2Fsocket.c;h=ea5ed9859507e4dde0453ac5cf4d1a12298b3b4d;hp=b1d0f292bf9ee4443eee6feac809811f1b29912d;hb=1a0c636bc38213bd0322db47529f78f2dc22ffdd;hpb=f91748e6a99dfd3b6565aed4e98e84b4365eb9c2 diff --git a/ccan/nfs/socket.c b/ccan/nfs/socket.c index b1d0f292..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 @@ -25,7 +25,7 @@ #include #include #include -#include "libnfs.h" +#include "nfs.h" #include "libnfs-raw.h" #include "libnfs-private.h" #include "dlinklist.h" @@ -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) {