From: Günther Deschner Date: Wed, 12 Aug 2009 12:59:44 +0000 (+0200) Subject: s3-spoolss: remove another duplicate copy of print_architecture_table. X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=53196955d47293ebf5956ddbdbbbc131e7116a78 s3-spoolss: remove another duplicate copy of print_architecture_table. Guenther --- diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index e535f26a8301..cd14b5ed2ad8 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -2057,20 +2057,21 @@ WERROR _spoolss_DeletePrinter(pipes_struct *p, * long architecture string ******************************************************************/ +static const struct print_architecture_table_node archi_table[]= { + + {"Windows 4.0", SPL_ARCH_WIN40, 0 }, + {"Windows NT x86", SPL_ARCH_W32X86, 2 }, + {"Windows NT R4000", SPL_ARCH_W32MIPS, 2 }, + {"Windows NT Alpha_AXP", SPL_ARCH_W32ALPHA, 2 }, + {"Windows NT PowerPC", SPL_ARCH_W32PPC, 2 }, + {"Windows IA64", SPL_ARCH_IA64, 3 }, + {"Windows x64", SPL_ARCH_X64, 3 }, + {NULL, "", -1 } +}; + static int get_version_id(const char *arch) { int i; - struct print_architecture_table_node archi_table[]= { - - {"Windows 4.0", "WIN40", 0 }, - {"Windows NT x86", "W32X86", 2 }, - {"Windows NT R4000", "W32MIPS", 2 }, - {"Windows NT Alpha_AXP", "W32ALPHA", 2 }, - {"Windows NT PowerPC", "W32PPC", 2 }, - {"Windows IA64", "IA64", 3 }, - {"Windows x64", "x64", 3 }, - {NULL, "", -1 } - }; for (i=0; archi_table[i].long_archi != NULL; i++) { @@ -6714,18 +6715,6 @@ WERROR _spoolss_SetJob(pipes_struct *p, return errcode; } -static const struct print_architecture_table_node archi_table[]= { - - {"Windows 4.0", SPL_ARCH_WIN40, 0 }, - {"Windows NT x86", SPL_ARCH_W32X86, 2 }, - {"Windows NT R4000", SPL_ARCH_W32MIPS, 2 }, - {"Windows NT Alpha_AXP", SPL_ARCH_W32ALPHA, 2 }, - {"Windows NT PowerPC", SPL_ARCH_W32PPC, 2 }, - {"Windows IA64", SPL_ARCH_IA64, 3 }, - {"Windows x64", SPL_ARCH_X64, 3 }, - {NULL, "", -1 } -}; - /**************************************************************************** Enumerates all printer drivers by level and architecture. ****************************************************************************/