From: Volker Lendecke Date: Mon, 9 Sep 2019 14:32:21 +0000 (+0200) Subject: smbd: Use file_id_str_buf() in setup_poll_open() X-Git-Tag: talloc-2.3.1~919 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c88cb0a13bf2bd6ec8d144c60991643b225746d3;p=thirdparty%2Fsamba.git smbd: Use file_id_str_buf() in setup_poll_open() While there, remove a pointless empty line Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 94e8753e32a..c9c9c474472 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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; }