X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=clients%2Frcpt500%2Fmain.c;h=f970476a5e8012fce75bfe84b2e1eb6320bcc28d;hb=ebfe58344c63a5fd99caf37f72a6acf02e6afc0e;hp=3e49efdbd7fd438b3ca8df686fa0b2a802b0ff33;hpb=bb1b81473b29b30b81faf725fe3f14521d0c170f;p=openldap diff --git a/clients/rcpt500/main.c b/clients/rcpt500/main.c index 3e49efdbd7..f970476a5e 100644 --- a/clients/rcpt500/main.c +++ b/clients/rcpt500/main.c @@ -141,7 +141,7 @@ main( int argc, char **argv ) if ( dosyslog ) { syslog( LOG_INFO, "processing command \"%s %s\" from %s", ( msg.msg_command < 0 ) ? "Unknown" : - cmds[ msg.msg_command ].cmd_text, + rcpt_cmds[ msg.msg_command ].cmd_text, ( msg.msg_arg == NULL ) ? "" : msg.msg_arg, msg.msg_replyto ); } @@ -151,10 +151,10 @@ main( int argc, char **argv ) /* sprintf( reply, "Your request was interpreted as: %s %s\n\n", - cmds[ msg.msg_command ].cmd_text, msg.msg_arg ); + rcpt_cmds[ msg.msg_command ].cmd_text, msg.msg_arg ); */ - (*cmds[ msg.msg_command ].cmd_handler)( &msg, reply ); + (*rcpt_cmds[ msg.msg_command ].cmd_handler)( &msg, reply ); if ( send_reply( &msg, reply ) < 0 ) { if ( dosyslog ) { @@ -360,10 +360,10 @@ find_command( char *text, char **argp ) } *s = '\0'; - for ( i = 0; cmds[ i ].cmd_text != NULL; ++i ) { - if (( s = strstr( argbuf, cmds[ i ].cmd_text )) != NULL - && isspace( (unsigned char) s[ strlen( cmds[ i ].cmd_text ) ] )) { - strcpy( argbuf, text + (s - argbuf) + strlen( cmds[ i ].cmd_text )); + for ( i = 0; rcpt_cmds[ i ].cmd_text != NULL; ++i ) { + if (( s = strstr( argbuf, rcpt_cmds[ i ].cmd_text )) != NULL + && isspace( (unsigned char) s[ strlen( rcpt_cmds[ i ].cmd_text ) ] )) { + strcpy( argbuf, text + (s - argbuf) + strlen( rcpt_cmds[ i ].cmd_text )); *argp = argbuf; while ( isspace( (unsigned char) **argp )) { ++(*argp);