mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Change JOB_INFO_CTR to return a pointer to an array rather than array of pointers.
(This used to be commit e9b71b354d
)
This commit is contained in:
parent
70a132c2d9
commit
f02b14f7c6
@ -1240,8 +1240,8 @@ typedef struct job_info_ctr_info
|
||||
{
|
||||
union
|
||||
{
|
||||
JOB_INFO_1 **job_info_1;
|
||||
JOB_INFO_2 **job_info_2;
|
||||
JOB_INFO_1 *job_info_1;
|
||||
JOB_INFO_2 *job_info_2;
|
||||
void *info;
|
||||
} job;
|
||||
|
||||
|
@ -1785,10 +1785,10 @@ static NTSTATUS cmd_spoolss_enum_jobs(struct cli_state *cli,
|
||||
for (i = 0; i < num_jobs; i++) {
|
||||
switch(level) {
|
||||
case 1:
|
||||
display_job_info_1(ctr.job.job_info_1[i]);
|
||||
display_job_info_1(&ctr.job.job_info_1[i]);
|
||||
break;
|
||||
case 2:
|
||||
display_job_info_2(ctr.job.job_info_2[i]);
|
||||
display_job_info_2(&ctr.job.job_info_2[i]);
|
||||
break;
|
||||
default:
|
||||
d_printf("unknown info level %d\n", level);
|
||||
|
Loading…
Reference in New Issue
Block a user