projects
/
nbd.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1d06559
)
r165: Remove outdated comments
author
yoe <yoe>
Tue, 6 Jun 2006 16:39:36 +0000
(16:39 +0000)
committer
yoe <yoe>
Tue, 6 Jun 2006 16:39:36 +0000
(16:39 +0000)
configure.ac
patch
|
blob
|
history
nbd-server.c
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
568f661
..
15fb669
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-67,10
+67,6
@@
case "`uname`" in
*) AC_MSG_RESULT(no) ;;
esac
AC_MSG_CHECKING(where to find a working nbd.h)
*) AC_MSG_RESULT(no) ;;
esac
AC_MSG_CHECKING(where to find a working nbd.h)
-dnl We need to check for NBD_CMD_DISC, but that's part of an enum, it is not
-dnl #define'd. Therefore, we check for something which is differently #define'd
-dnl in the old or new versions, even if we don't really care about that.
-dnl This might break at some time, but it should work for now, so...
AC_TRY_COMPILE([#define u32 int
#define u64 int
#include "nbd.h"
AC_TRY_COMPILE([#define u32 int
#define u64 int
#include "nbd.h"
diff --git
a/nbd-server.c
b/nbd-server.c
index
7229eb7
..
c21e3c6
100644
(file)
--- a/
nbd-server.c
+++ b/
nbd-server.c
@@
-946,8
+946,8
@@
int splitexport(CLIENT* client) {
}
return 0;
}
}
return 0;
}
-int copyonwrite_prepare(CLIENT* client)
-{
+
+int copyonwrite_prepare(CLIENT* client) {
off_t i;
if ((client->difffilename = malloc(1024))==NULL)
err("Failed to allocate string for diff file name");
off_t i;
if ((client->difffilename = malloc(1024))==NULL)
err("Failed to allocate string for diff file name");