]> git.marmaro.de Git - mmh/blobdiff - uip/flist.c
* uip/sendsbr.c: replaced st_mtim with st_mtime, that's what
[mmh] / uip / flist.c
index 758d308162fc5ecc229eabf2c9dbc099eb03ecac..36be1ed29b673b1be43907fb3dc05a703e175b06 100644 (file)
@@ -114,7 +114,6 @@ int AddFolder(char *, int);
 void BuildFolderList(char *, int);
 void BuildFolderListRecurse(char *, struct stat *, int);
 void PrintFolders(void);
-static int num_digits (int);
 void AllocFolders(struct Folder **, int *, int);
 int AssignPriority(char *);
 static void do_readonly_folders(void);
@@ -604,29 +603,6 @@ PrintFolders(void)
     }
 }
 
-/*
- * Calculate the number of digits in a nonnegative integer
- */
-static int
-num_digits (int n)
-{
-    int ndigits = 0;
-
-    /* Sanity check */
-    if (n < 0)
-       adios (NULL, "oops, num_digits called with negative value");
-
-    if (n == 0)
-       return 1;
-
-    while (n) {
-       n /= 10;
-       ndigits++;
-    }
-
-    return ndigits;
-}
-
 /*
  * Put them in priority order.
  */