summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-03-07 11:39:05 +0000
committerVolker Lendecke <vl@samba.org>2015-03-10 21:48:04 +0100
commitb3bbc4f6a7e612329efa2bff3456c5eaf8e29d95 (patch)
tree1da7d024764e23039d8af1c5205a4739c2705962
parent1f9f4006ac9c2a73a8fac7f00ab755f8dcddaf3b (diff)
downloadsamba-b3bbc4f6a7e612329efa2bff3456c5eaf8e29d95.tar.gz
samba-b3bbc4f6a7e612329efa2bff3456c5eaf8e29d95.tar.xz
samba-b3bbc4f6a7e612329efa2bff3456c5eaf8e29d95.zip
smbcontrol: Simplify do_winbind_offline
This saves 128 bytes of .text on x86-64 with -O3. No idea why... Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
-rw-r--r--source3/utils/smbcontrol.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index 9af0f3e251..3946c08038 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -1093,14 +1093,10 @@ static bool do_winbind_offline(struct tevent_context *ev_ctx,
5 times. */
for (retry = 0; retry < 5; retry++) {
- TDB_DATA d;
uint8 buf[4];
-
- ZERO_STRUCT(d);
+ TDB_DATA d = { .dptr = buf, .dsize = sizeof(buf) };
SIVAL(buf, 0, time(NULL));
- d.dptr = buf;
- d.dsize = 4;
tdb_store_bystring(tdb, "WINBINDD_OFFLINE", d, TDB_INSERT);