* utilvfs.c, vfs.h (vfs_split_url): Make path parameter const.
Этот коммит содержится в:
родитель
b201fe6077
Коммит
c908fc4562
@ -60,8 +60,8 @@
|
|||||||
* returns a malloced strings with the pathname relative to the host.
|
* returns a malloced strings with the pathname relative to the host.
|
||||||
* */
|
* */
|
||||||
|
|
||||||
char *vfs_split_url (char *path, char **host, char **user, int *port, char **pass,
|
char *vfs_split_url (const char *path, char **host, char **user,
|
||||||
int default_port, int flags)
|
int *port, char **pass, int default_port, int flags)
|
||||||
{
|
{
|
||||||
struct passwd *passwd_info;
|
struct passwd *passwd_info;
|
||||||
char *dir, *colon, *inner_colon, *at, *rest;
|
char *dir, *colon, *inner_colon, *at, *rest;
|
||||||
|
@ -347,8 +347,8 @@ extern int vfs_parse_filedate(int idx, time_t *t);
|
|||||||
|
|
||||||
extern void vfs_die (char *msg);
|
extern void vfs_die (char *msg);
|
||||||
extern char *vfs_get_password (char *msg);
|
extern char *vfs_get_password (char *msg);
|
||||||
extern char *vfs_split_url (char *path, char **host, char **user, int *port, char **pass,
|
extern char *vfs_split_url (const char *path, char **host, char **user,
|
||||||
int default_port, int flags);
|
int *port, char **pass, int default_port, int flags);
|
||||||
|
|
||||||
#ifdef WITH_SMBFS
|
#ifdef WITH_SMBFS
|
||||||
/* Interface for requesting SMB credentials. */
|
/* Interface for requesting SMB credentials. */
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user