aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authoroga2008-04-15 20:26:50 +0000
committeroga2008-04-15 20:26:50 +0000
commit4fe7a3740f967c868f91aa05868300e95af24727 (patch)
tree1d97fd3e6a2f67523d27bedc8da21b7b87b65063 /util.c
parentb31333397785733587b3bfe3adb27ff2761702b5 (diff)
downloadcwm-4fe7a3740f967c868f91aa05868300e95af24727.tar.gz
Kill dirent_isdir() and dirent_islink() nothing used them since the new
parser went in. ok okan.
Diffstat (limited to 'util.c')
-rw-r--r--util.c30
1 files changed, 1 insertions, 29 deletions
diff --git a/util.c b/util.c
index d8cd7fa..4b10d72 100644
--- a/util.c
+++ b/util.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: util.c,v 1.6 2008/04/15 20:24:41 oga Exp $
+ * $Id: util.c,v 1.7 2008/04/15 20:26:50 oga Exp $
*/
#include "headers.h"
@@ -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));
-}