mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Remove module_path_get_name() - it's not used anywhere anymore and was a bad idea anyway.
This commit is contained in:
parent
2e894f279c
commit
b45a67e7a9
@ -130,29 +130,6 @@ void init_modules(void)
|
||||
}
|
||||
|
||||
|
||||
/*************************************************************************
|
||||
* This functions /path/to/foobar.so -> foobar
|
||||
************************************************************************/
|
||||
void module_path_get_name(const char *path, pstring name)
|
||||
{
|
||||
char *s;
|
||||
|
||||
/* First, make the path relative */
|
||||
s = strrchr(path, '/');
|
||||
if(s) pstrcpy(name, s+1);
|
||||
else pstrcpy(name, path);
|
||||
|
||||
if (dyn_SHLIBEXT && *dyn_SHLIBEXT && strlen(dyn_SHLIBEXT) < strlen(name)) {
|
||||
int n = strlen(name) - strlen(dyn_SHLIBEXT);
|
||||
|
||||
/* Remove extension if necessary */
|
||||
if (name[n-1] == '.' && !strcmp(name+n, dyn_SHLIBEXT)) {
|
||||
name[n-1] = '\0';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
* This Function registers a idle event
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user