diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-26 13:46:47 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-26 13:46:47 +0200 |
commit | 1a4bcc0e6d0024636268a7cebcfc286243999ee5 (patch) | |
tree | 9e790f63ab1555483ccb0c4ff5a67f7e35d6ff76 | |
parent | a8210013684a18e59bc0f8563c417d2eea409e7c (diff) | |
download | mblaze-1a4bcc0e6d0024636268a7cebcfc286243999ee5.tar.gz mblaze-1a4bcc0e6d0024636268a7cebcfc286243999ee5.tar.xz mblaze-1a4bcc0e6d0024636268a7cebcfc286243999ee5.zip |
seq: rename iterfile to iterdir
-rw-r--r-- | seq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/seq.c b/seq.c index 619a118..56caa56 100644 --- a/seq.c +++ b/seq.c @@ -297,7 +297,7 @@ blaze822_seq_next(char *map, char *range, struct blaze822_seq_iter *iter) } static void -iterfile(char *dir, void (*cb)(char *)) +iterdir(char *dir, void (*cb)(char *)) { DIR *fd, *fd2; struct dirent *d; @@ -355,7 +355,7 @@ blaze822_loop(int argc, char *argv[], void (*cb)(char *)) int j = 0; for (i = 0; i < argc; i++) { if (strchr(argv[i], '/')) { // a file name - iterfile(argv[i], cb); + iterdir(argv[i], cb); j++; } else { while ((line = blaze822_seq_next(map, argv[i], &iter))) { |