]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Use file_id_str_buf() in setup_poll_open()
authorVolker Lendecke <vl@samba.org>
Mon, 9 Sep 2019 14:32:21 +0000 (16:32 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 10 Sep 2019 23:14:31 +0000 (23:14 +0000)
While there, remove a pointless empty line

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index 94e8753e32ac671d9e9e8c035c1b72572791a81a..c9c9c474472df7f381d948f9d9a1b0cb4657dddc 100644 (file)
@@ -2526,10 +2526,10 @@ static bool setup_poll_open(
        struct timeval max_timeout,
        struct timeval interval)
 {
-
        bool ok;
        struct deferred_open_record *open_rec = NULL;
        struct timeval endtime, next_interval;
+       struct file_id_buf ftmp;
 
        if (request_timed_out(req, max_timeout)) {
                return false;
@@ -2589,7 +2589,7 @@ static bool setup_poll_open(
        DBG_DEBUG("poll request time [%s] mid [%" PRIu64 "] file_id [%s]\n",
                  timeval_string(talloc_tos(), &req->request_time, false),
                  req->mid,
-                 file_id_string_tos(&id));
+                 file_id_str_buf(id, &ftmp));
 
        return true;
 }