]> git.ozlabs.org Git - ccan/blobdiff - ccan/nfs/socket.c
iscsi, nfs, opt, tap: use config.h instead of defining _GNU_SOURCE.
[ccan] / ccan / nfs / socket.c
index b1d0f292bf9ee4443eee6feac809811f1b29912d..ea5ed9859507e4dde0453ac5cf4d1a12298b3b4d 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    This program is free software; you can redistribute it and/or modify
@@ -25,7 +25,7 @@
 #include <rpc/xdr.h>
 #include <arpa/inet.h>
 #include <sys/ioctl.h>
-#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)
 {