From 96246c6b3b4d74ce80178477bcfe78c7f368572f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 3 Mar 2004 01:15:15 +0000 Subject: [PATCH] Fixed warnings. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6886 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/apps/ls/main.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/kernel/apps/ls/main.c b/src/kernel/apps/ls/main.c index 0c650dfb1d..5fa72eb5c1 100644 --- a/src/kernel/apps/ls/main.c +++ b/src/kernel/apps/ls/main.c @@ -31,13 +31,12 @@ mode_t perms [9] = { static void display_l(const char *path, const char *filename, struct stat *stat) { - const char *type; char perm[11]; - int i; + uint32 i; memset(perm, '-', 10); perm[10] = '\0'; - - for (i=0; i < sizeof(perms) / sizeof(mode_t); i++) { + + for (i = 0; i < sizeof(perms) / sizeof(mode_t); i++) { if (stat->st_mode & perms[i]) { switch(i % 3) { case 0: @@ -116,7 +115,6 @@ main(int argc, char *argv[]) } if (S_ISDIR(st.st_mode)) { - char buf[1024]; DIR *thedir = opendir(arg); if (!thedir) {