param: rename lp function and variable from "msg_command" to "message_command"
authorGarming Sam <garming@catalyst.net.nz>
Tue, 4 Feb 2014 02:09:04 +0000 (15:09 +1300)
committerJeremy Allison <jra@samba.org>
Sat, 8 Feb 2014 00:19:13 +0000 (16:19 -0800)
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/param/param_functions.c
lib/param/param_table.c
source3/smbd/message.c

index 3d190497a4875a49a07c36177b50b69d9e364cde..dd28567ec6731e877d043b612f7189d6fba88e61 100644 (file)
@@ -392,7 +392,7 @@ FN_GLOBAL_STRING(ldap_suffix, ldap_suffix)
 FN_GLOBAL_STRING(logfile, logfile)
 FN_GLOBAL_STRING(log_nt_token_command, log_nt_token_command)
 FN_GLOBAL_STRING(mangling_method, mangling_method)
-FN_GLOBAL_STRING(msg_command, msg_command)
+FN_GLOBAL_STRING(message_command, message_command)
 FN_GLOBAL_STRING(homedir_map, homedir_map)
 FN_GLOBAL_STRING(os2_driver_map, os2_driver_map)
 FN_GLOBAL_STRING(panic_action, panic_action)
index 89e52e1a8bfa01a457c79c1a984e1549db33a0a9..570b91606cf6ec29227deb9ef6b10e6059a390ba 100644 (file)
@@ -3400,7 +3400,7 @@ static struct parm_struct parm_table[] = {
                .label          = "message command",
                .type           = P_STRING,
                .p_class        = P_GLOBAL,
-               .offset         = GLOBAL_VAR(msg_command),
+               .offset         = GLOBAL_VAR(message_command),
                .special        = NULL,
                .enum_list      = NULL,
                .flags          = FLAG_ADVANCED,
index 5369f3185a39f71a58bd32faab7c0cfcf53cb3fe..3d91f1408db7b3e3e0f9ca0d8b1ae57e8550e65c 100644 (file)
@@ -53,7 +53,7 @@ static void msg_deliver(struct msg_state *state)
        char *s;
        mode_t mask;
 
-       if (! (*lp_msg_command(frame))) {
+       if (! (*lp_message_command(frame))) {
                DEBUG(1,("no messaging command specified\n"));
                goto done;
        }
@@ -100,7 +100,7 @@ static void msg_deliver(struct msg_state *state)
        close(fd);
 
        /* run the command */
-       s = lp_msg_command(frame);
+       s = lp_message_command(frame);
        if (s == NULL) {
                goto done;
        }
@@ -150,7 +150,7 @@ void reply_sends(struct smb_request *req)
 
        START_PROFILE(SMBsends);
 
-       if (!(*lp_msg_command(talloc_tos()))) {
+       if (!(*lp_message_command(talloc_tos()))) {
                reply_nterror(req, NT_STATUS_REQUEST_NOT_ACCEPTED);
                END_PROFILE(SMBsends);
                return;
@@ -198,7 +198,7 @@ void reply_sendstrt(struct smb_request *req)
 
        START_PROFILE(SMBsendstrt);
 
-       if (!(*lp_msg_command(talloc_tos()))) {
+       if (!(*lp_message_command(talloc_tos()))) {
                reply_nterror(req, NT_STATUS_REQUEST_NOT_ACCEPTED);
                END_PROFILE(SMBsendstrt);
                return;
@@ -248,7 +248,7 @@ void reply_sendtxt(struct smb_request *req)
 
        START_PROFILE(SMBsendtxt);
 
-       if (! (*lp_msg_command(talloc_tos()))) {
+       if (! (*lp_message_command(talloc_tos()))) {
                reply_nterror(req, NT_STATUS_REQUEST_NOT_ACCEPTED);
                END_PROFILE(SMBsendtxt);
                return;
@@ -297,7 +297,7 @@ void reply_sendend(struct smb_request *req)
 {
        START_PROFILE(SMBsendend);
 
-       if (! (*lp_msg_command(talloc_tos()))) {
+       if (! (*lp_message_command(talloc_tos()))) {
                reply_nterror(req, NT_STATUS_REQUEST_NOT_ACCEPTED);
                END_PROFILE(SMBsendend);
                return;