* direntry.c (vfs_s_dump): SunOS 5.8 warning fix. Reformat function.

This commit is contained in:
Andrew V. Samoilov 2003-02-19 14:04:35 +00:00
parent cbe4a1adf4
commit 55ccd00c73
2 changed files with 8 additions and 7 deletions

View File

@ -1,9 +1,10 @@
2003-02-19 Andrew V. Samoilov <sav@bcs.zp.ua>
* smbfs.c (smbfs_lseek): Backport from Samba 2.2.7 Suite.
(fake_server_stat): Warning fix for AIX. Reformat function.
(fake_server_stat): Warning fix for SunOS. Reformat function.
(fake_share_stat): Likewise.
(smbfs_mkdir): Likewise.
* direntry.c (vfs_s_dump): Likewise.
* vfs.c (is_localized_month): New function for locale's
abbreviated month name as any 3 bytes long string without digits

View File

@ -1014,19 +1014,19 @@ vfs_s_ferrno (vfs *me)
void
vfs_s_dump (vfs *me, char *prefix, vfs_s_inode *ino)
{
printf ("%s %s %d ", prefix, S_ISDIR (ino->st.st_mode) ? "DIR" : "FILE", ino->st.st_mode);
printf ("%s %s %d ", prefix, S_ISDIR (ino->st.st_mode) ? "DIR" : "FILE",
(int) ino->st.st_mode);
if (!ino->subdir)
printf ("FILE\n");
else
{
puts ("FILE");
else {
struct vfs_s_entry *ent;
for (ent = ino->subdir; ent ; ent = ent->next){
for (ent = ino->subdir; ent; ent = ent->next) {
char *s = g_strconcat (prefix, "/", ent->name, NULL);
if (ent->name[0] == '.')
printf ("%s IGNORED\n", s);
else
vfs_s_dump (me, s, ent->ino);
g_free(s);
g_free (s);
}
}
}