git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90a2246
)
messaging3: Save 48 bytes .text
author
Volker Lendecke
<vl@samba.org>
Fri, 25 Jul 2014 10:42:19 +0000
(10:42 +0000)
committer
Jeremy Allison
<jra@samba.org>
Mon, 11 Aug 2014 21:57:13 +0000
(23:57 +0200)
source3/lib/messages_dgm.c
patch
|
blob
|
history
diff --git
a/source3/lib/messages_dgm.c
b/source3/lib/messages_dgm.c
index e95aa9530df3371b0c18b654e6c957138b685d06..2f85b3d7697b5ec08966273fe0c79325ac130be9 100644
(file)
--- a/
source3/lib/messages_dgm.c
+++ b/
source3/lib/messages_dgm.c
@@
-65,7
+65,7
@@
static int messaging_dgm_lockfile_create(TALLOC_CTX *tmp_ctx,
char *dir;
char *lockfile_name;
int lockfile_fd;
- struct flock lck
= {}
;
+ struct flock lck;
int unique_len, ret;
ssize_t written;
bool ok;
@@
-101,10
+101,10
@@
static int messaging_dgm_lockfile_create(TALLOC_CTX *tmp_ctx,
goto fail_free;
}
- lck
.l_type = F_WRLCK;
- lck.l_whence = SEEK_SET;
- lck.l_start = 0;
-
lck.l_len = 0
;
+ lck
= (struct flock) {
+ .l_type = F_WRLCK,
+ .l_whence = SEEK_SET
+
}
;
ret = fcntl(lockfile_fd, F_SETLK, &lck);
if (ret == -1) {