1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

s3:printing: Remove unused variable

source3/printing/tests/vlp.c:144:19: error: variable 'job_count' set but not
    used [-Werror,-Wunused-but-set-variable]
        int i, num_jobs, job_count = 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 15:14:12 +01:00 committed by Jeremy Allison
parent a77c56e4ed
commit 54413a49f5

View File

@ -141,7 +141,7 @@ static int lpq_command(int argc, char **argv)
{
char *printer;
struct vlp_job *job_list = NULL;
int i, num_jobs, job_count = 0;
int i, num_jobs;
if (argc != 2) {
printf("Usage: lpq <printername>\n");
@ -177,7 +177,6 @@ static int lpq_command(int argc, char **argv)
LPQ_SPOOLING : job_list[i].status,
(long int)job_list[i].submit_time, job_list[i].owner,
job_list[i].jobname);
job_count++;
}
free(job_list);