summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-26 13:46:47 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-26 13:46:47 +0200
commit1a4bcc0e6d0024636268a7cebcfc286243999ee5 (patch)
tree9e790f63ab1555483ccb0c4ff5a67f7e35d6ff76
parenta8210013684a18e59bc0f8563c417d2eea409e7c (diff)
downloadmblaze-1a4bcc0e6d0024636268a7cebcfc286243999ee5.tar.gz
mblaze-1a4bcc0e6d0024636268a7cebcfc286243999ee5.tar.xz
mblaze-1a4bcc0e6d0024636268a7cebcfc286243999ee5.zip
seq: rename iterfile to iterdir
-rw-r--r--seq.c4
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))) {