projects
/
swifty.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cd890f
)
A few minor changes to server files
author
root (spook.local)
<root@spook.local>
Sun, 20 May 2012 16:40:08 +0000
(19:40 +0300)
committer
Razvan Deaconescu
<razvan.deaconescu@cs.pub.ro>
Mon, 18 Mar 2013 16:38:05 +0000
(18:38 +0200)
test/server_lf.c
patch
|
blob
|
history
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>
-#define ADDR 0x8
0
BEA8C0
+#define ADDR 0x8
1
BEA8C0
int main(int argc, const char *argv[])
{
@@
-39,7
+39,7
@@
int main(int argc, const char *argv[])
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);