1
0
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:
Tim Potter 2002-09-03 03:20:21 +00:00
parent 70a132c2d9
commit f02b14f7c6
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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);