The max_ arguments are really "%.*s" format input paramaters, to make them into ints.
authorLove Hörnquist Åstrand <lha@kth.se>
Thu, 28 May 2009 01:21:08 +0000 (01:21 +0000)
committerLove Hörnquist Åstrand <lha@kth.se>
Thu, 28 May 2009 01:21:08 +0000 (01:21 +0000)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25253 ec53bebd-3082-4978-b11e-865c3cabbd6b

appl/ftp/ftpd/ls.c

index 2cb81efbf40b6aa83e695e4dc45b6067c4d71579..1abb37f89a2174dda52d365dfaeaf5ae2dee2ca5 100644 (file)
@@ -320,9 +320,9 @@ print_file(FILE *out,
           int max_n_link,
           int max_user,
           int max_group,
-          unsigned int max_size,
-          unsigned int max_major,
-          unsigned int max_minor,
+          int max_size,
+          int max_major,
+          int max_minor,
           int max_date)
 {
     if(f->filename == NULL)
@@ -569,9 +569,9 @@ list_files(FILE *out, const char **files, int n_files, int flags)
        int max_n_link = 0;
        int max_user = 0;
        int max_group = 0;
-       unsigned int max_size = 0;
-       unsigned int max_major = 0;
-       unsigned int max_minor = 0;
+       int max_size = 0;
+       int max_major = 0;
+       int max_minor = 0;
        int max_date = 0;
        for(i = 0; i < n_files; i++) {
            if(fi[i].filename == NULL)