ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/modules.c
(Generate patch)

Comparing ircd-hybrid-7.2/src/modules.c (file contents):
Revision 946 by michael, Mon Jul 20 23:18:04 2009 UTC vs.
Revision 978 by michael, Sun Aug 9 09:47:58 2009 UTC

# Line 318 | Line 318 | load_core_modules(int warn)
318   * side effects - module is loaded if found.
319   */
320   int
321 < load_one_module(char *path, int coremodule)
321 > load_one_module(const char *path, int coremodule)
322   {
323    dlink_node *ptr = NULL;
324    char modpath[PATH_MAX + 1];
# Line 358 | Line 358 | static void
358   mo_modload(struct Client *client_p, struct Client *source_p,
359             int parc, char *parv[])
360   {
361 <  char *m_bn;
361 >  const char *m_bn = NULL;
362  
363    if (!IsAdmin(source_p))
364    {
# Line 367 | Line 367 | mo_modload(struct Client *client_p, stru
367      return;
368    }
369  
370 <  m_bn = basename(parv[1]);
370 >  m_bn = libio_basename(parv[1]);
371  
372    if (findmodule_byname(m_bn) != NULL)
373    {
# Line 384 | Line 384 | static void
384   mo_modunload(struct Client *client_p, struct Client *source_p,
385               int parc, char *parv[])
386   {
387 <  char *m_bn;
387 >  const char *m_bn = NULL;
388    dlink_node *ptr;
389    struct module *modp;
390  
# Line 395 | Line 395 | mo_modunload(struct Client *client_p, st
395      return;
396    }
397  
398 <  m_bn = basename(parv[1]);
398 >  m_bn = libio_basename(parv[1]);
399  
400    if ((ptr = findmodule_byname(m_bn)) == NULL)
401    {
# Line 428 | Line 428 | static void
428   mo_modreload(struct Client *client_p, struct Client *source_p,
429               int parc, char *parv[])
430   {
431 <  char *m_bn;
431 >  const char *m_bn = NULL;
432    dlink_node *ptr;
433    struct module *modp;
434    int check_core;
# Line 440 | Line 440 | mo_modreload(struct Client *client_p, st
440      return;
441    }
442  
443 <  m_bn = basename(parv[1]);
443 >  m_bn = libio_basename(parv[1]);
444  
445    if ((ptr = findmodule_byname(m_bn)) == NULL)
446    {

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)