From b3bbc4f6a7e612329efa2bff3456c5eaf8e29d95 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 7 Mar 2015 11:39:05 +0000 Subject: smbcontrol: Simplify do_winbind_offline This saves 128 bytes of .text on x86-64 with -O3. No idea why... Signed-off-by: Volker Lendecke Reviewed-by: Ira Cooper --- source3/utils/smbcontrol.c | 6 +----- 1 file changed, 1 insertion(+), 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); -- cgit