summaryrefslogtreecommitdiff
path: root/source4/gtk/tools
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-05-21 15:02:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:19 -0500
commitad9003b44835ea7702479a9493c63e5c69eee067 (patch)
treefbecccf3474c69abc32720b279c690bac734081b /source4/gtk/tools
parent8fef2c8122a8d8ca522356353d30ed25dfd4c8fe (diff)
downloadsamba-ad9003b44835ea7702479a9493c63e5c69eee067.tar.gz
samba-ad9003b44835ea7702479a9493c63e5c69eee067.tar.bz2
samba-ad9003b44835ea7702479a9493c63e5c69eee067.zip
r15779: Remove keepref from atsvc and efs.
(This used to be commit b44a8c32d35bcd0dc7339793c34cb84dd6981366)
Diffstat (limited to 'source4/gtk/tools')
-rw-r--r--source4/gtk/tools/gwcrontab.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/source4/gtk/tools/gwcrontab.c b/source4/gtk/tools/gwcrontab.c
index fe21248363..8826faa100 100644
--- a/source4/gtk/tools/gwcrontab.c
+++ b/source4/gtk/tools/gwcrontab.c
@@ -44,14 +44,14 @@ static void update_joblist(void)
int i;
uint32_t resume_handle = 0;
- gtk_list_store_clear(store_jobs);
+ gtk_list_store_clear(store_jobs);
ctr.entries_read = 0;
ctr.first_entry = NULL;
r.in.servername = dcerpc_server_name(at_pipe);
- r.in.ctr = r.out.ctr = &ctr;
- r.in.preferred_max_len = 0xffffffff;
- r.in.resume_handle = r.out.resume_handle = &resume_handle;
+ r.in.ctr = ctr;
+ r.in.preferred_max_len = 0xffffffff;
+ r.in.resume_handle = r.out.resume_handle = &resume_handle;
status = dcerpc_atsvc_JobEnum(at_pipe, mem_ctx, &r);
if(!NT_STATUS_IS_OK(status)) {
@@ -59,15 +59,15 @@ static void update_joblist(void)
return;
}
- for (i = 0; r.out.ctr && i < r.out.ctr->entries_read; i++) {
+ for (i = 0; i < r.out.ctr.entries_read; i++) {
GtkTreeIter iter;
gtk_list_store_append(store_jobs, &iter);
gtk_list_store_set (store_jobs, &iter,
- 0, r.out.ctr->first_entry[i].flags,
- 1, r.out.ctr->first_entry[i].job_id,
- 2, r.out.ctr->first_entry[i].days_of_week, /*FIXME: Nicer format */
- 3, r.out.ctr->first_entry[i].job_time, /* FIXME: Nicer format */
- 4, r.out.ctr->first_entry[i].command,
+ 0, r.out.ctr.first_entry[i].flags,
+ 1, r.out.ctr.first_entry[i].job_id,
+ 2, r.out.ctr.first_entry[i].days_of_week, /*FIXME: Nicer format */
+ 3, r.out.ctr.first_entry[i].job_time, /* FIXME: Nicer format */
+ 4, r.out.ctr.first_entry[i].command,
-1);
}
@@ -122,7 +122,7 @@ void on_new_activate (GtkMenuItem *menuitem, gpointer user_data)
job.flags = 0; /* FIXME */
job.command = gtk_entry_get_text(GTK_ENTRY(entry_cmd));
r.in.servername = dcerpc_server_name(at_pipe);
- r.in.job_info = &job;
+ r.in.job_info = job;
status = dcerpc_atsvc_JobAdd(at_pipe, mem_ctx, &r);
if(!NT_STATUS_IS_OK(status)) {