Fixed warnings.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6886 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-03-03 01:15:15 +00:00
parent 663bccf7f9
commit 96246c6b3b

View File

@ -31,13 +31,12 @@ mode_t perms [9] = {
static void static void
display_l(const char *path, const char *filename, struct stat *stat) display_l(const char *path, const char *filename, struct stat *stat)
{ {
const char *type;
char perm[11]; char perm[11];
int i; uint32 i;
memset(perm, '-', 10); memset(perm, '-', 10);
perm[10] = '\0'; 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]) { if (stat->st_mode & perms[i]) {
switch(i % 3) { switch(i % 3) {
case 0: case 0:
@ -116,7 +115,6 @@ main(int argc, char *argv[])
} }
if (S_ISDIR(st.st_mode)) { if (S_ISDIR(st.st_mode)) {
char buf[1024];
DIR *thedir = opendir(arg); DIR *thedir = opendir(arg);
if (!thedir) { if (!thedir) {