]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_oper.c
crypt -> rb_crypt, fixing another gcc warning
[irc/rqf/shadowircd.git] / modules / m_oper.c
index ac7a1d34412efe58e1f1c36829bcc926c23e2418..2a8a2f0e7b3173d6cff43047f805bb7d019087bb 100644 (file)
  */
 
 #include "stdinc.h"
-#include "tools.h"
 #include "client.h"
 #include "common.h"
-#include "irc_string.h"
+#include "match.h"
 #include "ircd.h"
 #include "numeric.h"
-#include "commio.h"
 #include "s_conf.h"
 #include "s_newconf.h"
-#include "s_log.h"
+#include "logger.h"
 #include "s_user.h"
 #include "send.h"
 #include "msg.h"
@@ -54,7 +52,6 @@ mapi_clist_av1 oper_clist[] = { &oper_msgtab, NULL };
 DECLARE_MODULE_AV1(oper, NULL, NULL, oper_clist, NULL, NULL, "$Revision: 1483 $");
 
 static int match_oper_password(const char *password, struct oper_conf *oper_p);
-extern char *crypt();
 
 /*
  * m_oper
@@ -158,7 +155,7 @@ match_oper_password(const char *password, struct oper_conf *oper_p)
                 * the proper encrypted hash for comparison.
                 */
                if(!EmptyString(password))
-                       encr = crypt(password, oper_p->passwd);
+                       encr = rb_crypt(password, oper_p->passwd);
                else
                        encr = "";
        }