summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-09-03 03:20:21 +0000
committerTim Potter <tpot@samba.org>2002-09-03 03:20:21 +0000
commitf02b14f7c61496950178e4c8a41d9c68c983d51d (patch)
treec73d1a5264a629e5a4273709f1fb396d5bda7e65
parent70a132c2d94cc0d5df25b542360ea62156d10c9f (diff)
downloadsamba-f02b14f7c61496950178e4c8a41d9c68c983d51d.tar.gz
samba-f02b14f7c61496950178e4c8a41d9c68c983d51d.tar.bz2
samba-f02b14f7c61496950178e4c8a41d9c68c983d51d.zip
Change JOB_INFO_CTR to return a pointer to an array rather than array of pointers.
(This used to be commit e9b71b354d923b2cd0f028dd197e7ca81339ec3a)
-rwxr-xr-xsource3/include/rpc_spoolss.h4
-rw-r--r--source3/rpcclient/cmd_spoolss.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/include/rpc_spoolss.h b/source3/include/rpc_spoolss.h
index b7acf44c5d..456825a5f5 100755
--- a/source3/include/rpc_spoolss.h
+++ b/source3/include/rpc_spoolss.h
@@ -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;
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c
index 2ab90365a7..bd399196eb 100644
--- a/source3/rpcclient/cmd_spoolss.c
+++ b/source3/rpcclient/cmd_spoolss.c
@@ -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);