Minor fixes

This commit is contained in:
Sergey Poznyakoff
2004-02-18 14:41:41 +00:00
parent 440e65ef2c
commit 694e8376ab

View File

@@ -127,7 +127,7 @@ scan_path (struct obstack *stk, char *path, dev_t device)
char *name_buffer; /* directory, `/', and directory member */ char *name_buffer; /* directory, `/', and directory member */
size_t name_buffer_size; /* allocated size of name_buffer, minus 2 */ size_t name_buffer_size; /* allocated size of name_buffer, minus 2 */
size_t name_length; /* used length in name_buffer */ size_t name_length; /* used length in name_buffer */
struct directory *directory; /* for checking if already already seen */ struct directory *directory; /* for checking if already seen */
enum children children; enum children children;
if (! dirp) if (! dirp)
@@ -308,7 +308,7 @@ get_directory_contents (char *path, dev_t device)
scan_path (&stk, path, device); scan_path (&stk, path, device);
buffer = sort_obstack (&stk); buffer = sort_obstack (&stk);
obstack_free (&stk, NULL); obstack_free (&stk, NULL);
return buffer;; return buffer;
} }