mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Kill dirent_isdir() and dirent_islink() nothing used them since the new
parser went in. ok okan.
This commit is contained in:
parent
75182c6d9c
commit
887a5aa65f
3
calmwm.h
3
calmwm.h
@ -400,9 +400,6 @@ void xu_setstate(struct client_ctx *, int);
|
||||
int xu_getstate(struct client_ctx *, int *);
|
||||
void xu_key_grab_keycode(Window, int, int);
|
||||
|
||||
int dirent_exists(char *);
|
||||
int dirent_isdir(char *);
|
||||
int dirent_islink(char *);
|
||||
int u_spawn(char *);
|
||||
void exec_wm(char *);
|
||||
|
||||
|
28
util.c
28
util.c
@ -64,31 +64,3 @@ exec_wm(char *argstr)
|
||||
execvp(args[0], args);
|
||||
warn(args[0]);
|
||||
}
|
||||
|
||||
int
|
||||
dirent_isdir(char *filename)
|
||||
{
|
||||
struct stat buffer;
|
||||
int return_value;
|
||||
|
||||
return_value = stat(filename, &buffer);
|
||||
|
||||
if (return_value == -1)
|
||||
return (0);
|
||||
else
|
||||
return (S_ISDIR(buffer.st_mode));
|
||||
}
|
||||
|
||||
int
|
||||
dirent_islink(char *filename)
|
||||
{
|
||||
struct stat buffer;
|
||||
int return_value;
|
||||
|
||||
return_value = lstat(filename, &buffer);
|
||||
|
||||
if (return_value == -1)
|
||||
return (0);
|
||||
else
|
||||
return (S_ISLNK(buffer.st_mode));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user