projects
/
swifty.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A few minor changes to server files
[swifty.git]
/
test
/
server_lf.c
diff --git
a/test/server_lf.c
b/test/server_lf.c
index
1ec8a32
..
538b352
100644
(file)
--- a/
test/server_lf.c
+++ b/
test/server_lf.c
@@
-8,7
+8,7
@@
#include <stdlib.h>
#include <fcntl.h>
#include <stdlib.h>
#include <fcntl.h>
-#define ADDR 0x8
0
BEA8C0
+#define ADDR 0x8
1
BEA8C0
int main(int argc, const char *argv[])
{
int main(int argc, const char *argv[])
{
@@
-39,7
+39,7
@@
int main(int argc, const char *argv[])
return -1;
}
return -1;
}
- int fd = open(argv[2], O_RDWR);
+ int fd = open(argv[2], O_RDWR
| O_CREAT | O_TRUNC
);
if (fd < 0) {
perror("Failed to open file");
close(sock);
if (fd < 0) {
perror("Failed to open file");
close(sock);