about summary refs log tree commit diff
path: root/mlist.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-01-26 20:27:26 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-01-26 20:27:26 +0100
commit2b4e3aa66dc66c6c5c6f74c60c597e734b539ff6 (patch)
tree240cda05651bf8822b3eb47dee3a6781b064277a /mlist.c
parentc561aca4c9affa597d6a36d39d8a65c58ca78c87 (diff)
downloadmblaze-2b4e3aa66dc66c6c5c6f74c60c597e734b539ff6.tar.gz
mblaze-2b4e3aa66dc66c6c5c6f74c60c597e734b539ff6.tar.xz
mblaze-2b4e3aa66dc66c6c5c6f74c60c597e734b539ff6.zip
clean up whitespace
Diffstat (limited to 'mlist.c')
-rw-r--r--mlist.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/mlist.c b/mlist.c
index 4e40eb5..82eea73 100644
--- a/mlist.c
+++ b/mlist.c
@@ -93,11 +93,11 @@ list(char *prefix, char *file)
 #include <sys/syscall.h>
 
 struct linux_dirent64 {
-	ino64_t        d_ino;    /* 64-bit inode number */
-	off64_t        d_off;    /* 64-bit offset to next structure */
+	ino64_t	       d_ino;	 /* 64-bit inode number */
+	off64_t	       d_off;	 /* 64-bit offset to next structure */
 	unsigned short d_reclen; /* Size of this dirent */
-	unsigned char  d_type;   /* File type */
-	char           d_name[]; /* Filename (null-terminated) */
+	unsigned char  d_type;	 /* File type */
+	char	       d_name[]; /* Filename (null-terminated) */
 };
 #define BUF_SIZE 1024000
 
@@ -144,7 +144,7 @@ void
 listdir(char *dir)
 {
 	DIR *fd;
-        struct dirent *d;
+	struct dirent *d;
 
 	fd = opendir(dir);
 	if (!fd)
@@ -222,11 +222,11 @@ main(int argc, char *argv[])
 		case 'p': case 'r': case 's': case 't': case 'd': case 'f':
 			flags[(unsigned int)uc(c)] = -1;
 			break;
-                case 'X':
+		case 'X':
 			while (*optarg)
 				flags[(unsigned int)*optarg++] = 1;
 			break;
-                case 'x':
+		case 'x':
 			while (*optarg)
 				flags[(unsigned int)*optarg++] = -1;
 			break;
@@ -239,14 +239,14 @@ main(int argc, char *argv[])
 		usage:
 			fprintf(stderr,
 			    "Usage: mlist [-DFPRST] [-X str]\n"
-			    "             [-dfprst] [-x str]\n"
-			    "             [-N | -n | -C | -c]\n"
-			    "             [-i] [dirs...]\n"
+			    "		  [-dfprst] [-x str]\n"
+			    "		  [-N | -n | -C | -c]\n"
+			    "		  [-i] [dirs...]\n"
 			);
 			exit(1);
 		}
 
-        int i;
+	int i;
 	
 	for (i = 0, flagsum = 0, flagset = 0; (size_t)i < sizeof flags; i++) {
 		if (flags[i] != 0)