diff options
author | Günther Deschner <gd@samba.org> | 2009-02-26 00:49:02 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-02-26 13:17:22 +0100 |
commit | 3e25d3bb15fd616fdf89fcb10aba27a9a7586e15 (patch) | |
tree | 00e3c8de2743ba3fa57bb3556ae7a9a49d31b482 /source3/rpc_server | |
parent | d3ac11c64a95c2041dc0002b8cc59d756736d3be (diff) | |
download | samba-3e25d3bb15fd616fdf89fcb10aba27a9a7586e15.tar.gz samba-3e25d3bb15fd616fdf89fcb10aba27a9a7586e15.tar.bz2 samba-3e25d3bb15fd616fdf89fcb10aba27a9a7586e15.zip |
s3-spoolss: remove some unused defines and structs.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 5a79dcabc8..c7fd52d47b 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -3486,7 +3486,6 @@ static const struct s_notify_info_data_table notify_info_data_table[] = { JOB_NOTIFY_TYPE, JOB_NOTIFY_TOTAL_PAGES, "JOB_NOTIFY_TOTAL_PAGES", NOTIFY_TABLE_DWORD, spoolss_notify_total_pages }, { JOB_NOTIFY_TYPE, JOB_NOTIFY_PAGES_PRINTED, "JOB_NOTIFY_PAGES_PRINTED", NOTIFY_TABLE_DWORD, spoolss_notify_pages_printed }, { JOB_NOTIFY_TYPE, JOB_NOTIFY_TOTAL_BYTES, "JOB_NOTIFY_TOTAL_BYTES", NOTIFY_TABLE_DWORD, spoolss_notify_job_size }, -{ PRINT_TABLE_END, 0x0, NULL, 0x0, NULL }, }; /******************************************************************* @@ -3519,7 +3518,7 @@ static bool search_notify(enum spoolss_NotifyType type, { int i; - for (i = 0; notify_info_data_table[i].type != PRINT_TABLE_END; i++) { + for (i = 0; ARRAY_SIZE(notify_info_data_table); i++) { if (notify_info_data_table[i].type == type && notify_info_data_table[i].field == field && notify_info_data_table[i].fn != NULL) { |