mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-22 18:24:23 +03:00
Const-ified the vfs_find[ug]id functions.
This commit is contained in:
parent
6eb3569507
commit
5a345d5e4d
@ -150,7 +150,7 @@ vfs_split_url (const char *path, char **host, char **user, int *port,
|
||||
#define mygid ( my_gid < 0? (my_gid = getgid()): my_gid )
|
||||
|
||||
int
|
||||
vfs_finduid (char *uname)
|
||||
vfs_finduid (const char *uname)
|
||||
{
|
||||
static int saveuid = -993;
|
||||
static char saveuname[TUNMLEN];
|
||||
@ -172,7 +172,7 @@ vfs_finduid (char *uname)
|
||||
}
|
||||
|
||||
int
|
||||
vfs_findgid (char *gname)
|
||||
vfs_findgid (const char *gname)
|
||||
{
|
||||
static int savegid = -993;
|
||||
static char savegname[TGNMLEN];
|
||||
|
@ -11,8 +11,8 @@
|
||||
#define URL_ALLOW_ANON 1
|
||||
#define URL_NOSLASH 2
|
||||
|
||||
int vfs_finduid (char *name);
|
||||
int vfs_findgid (char *name);
|
||||
int vfs_finduid (const char *name);
|
||||
int vfs_findgid (const char *name);
|
||||
|
||||
char *vfs_split_url (const char *path, char **host, char **user, int *port,
|
||||
char **pass, int default_port, int flags);
|
||||
|
Loading…
x
Reference in New Issue
Block a user