summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-03-03 19:39:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:56 -0500
commit2a7847ea378ca71e7901c1bed6fdcf87ff8f1d70 (patch)
tree05054d4d832b182fc2afb18575353e1e71d56be3 /source3/rpc_server
parent354c24d5257bad429c300b5cb7052d034d48d7a9 (diff)
downloadsamba-2a7847ea378ca71e7901c1bed6fdcf87ff8f1d70.tar.gz
samba-2a7847ea378ca71e7901c1bed6fdcf87ff8f1d70.tar.bz2
samba-2a7847ea378ca71e7901c1bed6fdcf87ff8f1d70.zip
r13821: replacing some strings with macros
(This used to be commit a34ab5c827630a5517e4c706877a172e6063f227)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 2f2f599f43..98abd9d15e 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -7147,13 +7147,15 @@ static void fill_port_1(PORT_INFO_1 *port, const char *name)
}
/****************************************************************************
+ TODO: This probably needs distinguish between TCP/IP and Local ports
+ somehow.
****************************************************************************/
static void fill_port_2(PORT_INFO_2 *port, const char *name)
{
init_unistr(&port->port_name, name);
init_unistr(&port->monitor_name, "Local Monitor");
- init_unistr(&port->description, "Local Port");
+ init_unistr(&port->description, SPL_LOCAL_PORT );
port->port_type=PORT_TYPE_WRITE;
port->reserved=0x0;
}
@@ -8477,8 +8479,8 @@ static WERROR enumprintmonitors_level_1(RPC_BUFFER *buffer, uint32 offered, uint
*returned = 2;
- init_unistr(&(info_1[0].name), "Local Port");
- init_unistr(&(info_1[1].name), "Standard TCP/IP Port");
+ init_unistr(&(info_1[0].name), SPL_LOCAL_PORT );
+ init_unistr(&(info_1[1].name), SPL_TCPIP_PORT );
for ( i=0; i<*returned; i++ ) {
*needed += spoolss_size_printmonitor_info_1(&info_1[i]);
@@ -8522,13 +8524,13 @@ static WERROR enumprintmonitors_level_2(RPC_BUFFER *buffer, uint32 offered, uint
*returned = 2;
- init_unistr(&(info_2[0].name), "Local Port");
- init_unistr(&(info_2[0].environment), "Windows NT X86");
- init_unistr(&(info_2[0].dll_name), "localmon.dll");
+ init_unistr( &(info_2[0].name), SPL_LOCAL_PORT );
+ init_unistr( &(info_2[0].environment), "Windows NT X86" );
+ init_unistr( &(info_2[0].dll_name), "localmon.dll" );
- init_unistr(&(info_2[1].name), "Standard TCP/IP Port");
- init_unistr(&(info_2[1].environment), "Windows NT X86");
- init_unistr(&(info_2[1].dll_name), "tcpmon.dll");
+ init_unistr( &(info_2[1].name), SPL_TCPIP_PORT );
+ init_unistr( &(info_2[1].environment), "Windows NT X86" );
+ init_unistr( &(info_2[1].dll_name), "tcpmon.dll" );
for ( i=0; i<*returned; i++ ) {
*needed += spoolss_size_printmonitor_info_2(&info_2[i]);