]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/tools/testfind.c
Replace explicit checks for "/" with calls to IsPathSeparator, strchr with first_path...
[bacula/bacula] / bacula / src / tools / testfind.c
index 3b7876912fccd53f44070374ba1d648840386947..441c1f2a87b1183e7a1542d82b7e3511e955aa46 100644 (file)
@@ -338,11 +338,11 @@ static void count_files(FF_PKT *ar)
     * must be a path name (e.g. c:).
     */
    for (p=l=ar->fname; *p; p++) {
-      if (*p == '/') {
+      if (IsPathSeparator(*p)) {
          l = p;                       /* set pos of last slash */
       }
    }
-   if (*l == '/') {                   /* did we find a slash? */
+   if (IsPathSeparator(*l)) {                   /* did we find a slash? */
       l++;                            /* yes, point to filename */
    } else {                           /* no, whole thing must be path name */
       l = p;