1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3:rpcsrv:eventlog: Remove unused variable

source3/rpc_server/eventlog/srv_eventlog_nt.c:634:11: error: variable
  'num_records_read' set but not used [-Werror,-Wunused-but-set-variable]
        uint32_t num_records_read = 0;

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Andreas Schneider 2023-02-03 14:36:41 +01:00 committed by Jeremy Allison
parent 91e7351db3
commit f266e9e2dc

View File

@ -631,7 +631,6 @@ NTSTATUS _eventlog_ReadEventLogW(struct pipes_struct *p,
struct eventlog_ReadEventLogW *r)
{
EVENTLOG_INFO *info = find_eventlog_info_by_hnd( p, r->in.handle );
uint32_t num_records_read = 0;
int bytes_left, record_number;
uint32_t elog_read_type, elog_read_dir;
@ -726,8 +725,6 @@ NTSTATUS _eventlog_ReadEventLogW(struct pipes_struct *p,
memcpy(&r->out.data[*(r->out.sent_size)],
blob.data, blob.length);
*(r->out.sent_size) += blob.length;
num_records_read++;
}
if (r->in.offset == 0 && record_number == 0 && *r->out.sent_size == 0) {