code-style: whitespace fixes
This commit is contained in:
		| @@ -1,6 +1,7 @@ | |||||||
|  | #include <sys/types.h> | ||||||
|  |  | ||||||
| #include <regex.h> | #include <regex.h> | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| #include <sys/types.h> |  | ||||||
|  |  | ||||||
| #include "../util.h" | #include "../util.h" | ||||||
|  |  | ||||||
| @@ -15,6 +16,7 @@ enregcomp(int status, regex_t *preg, const char *regex, int cflags) | |||||||
|  |  | ||||||
| 	regerror(r, preg, errbuf, sizeof(errbuf)); | 	regerror(r, preg, errbuf, sizeof(errbuf)); | ||||||
| 	enprintf(status, "invalid regex: %s\n", errbuf); | 	enprintf(status, "invalid regex: %s\n", errbuf); | ||||||
|  |  | ||||||
| 	return r; | 	return r; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -29,6 +29,10 @@ char * | |||||||
| strcasestr(const char *h, const char *n) | strcasestr(const char *h, const char *n) | ||||||
| { | { | ||||||
| 	size_t l = strlen(n); | 	size_t l = strlen(n); | ||||||
|         for (; *h; h++) if (!strncasecmp(h, n, l)) return (char *)h; |  | ||||||
|  | 	for (; *h; h++) | ||||||
|  | 		if (!strncasecmp(h, n, l)) | ||||||
|  | 			return (char *)h; | ||||||
|  |  | ||||||
| 	return 0; | 	return 0; | ||||||
| } | } | ||||||
|   | |||||||
							
								
								
									
										3
									
								
								ls.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								ls.c
									
									
									
									
									
								
							| @@ -28,7 +28,7 @@ struct entry { | |||||||
| static struct { | static struct { | ||||||
| 	dev_t dev; | 	dev_t dev; | ||||||
| 	ino_t ino; | 	ino_t ino; | ||||||
| } tree[PATH_MAX] = { { 0, 0 } }; | } tree[PATH_MAX]; | ||||||
|  |  | ||||||
| static int Aflag = 0; | static int Aflag = 0; | ||||||
| static int aflag = 0; | static int aflag = 0; | ||||||
| @@ -307,6 +307,7 @@ visit(const struct entry *ent) | |||||||
|  |  | ||||||
| 	tree[i].ino = ino; | 	tree[i].ino = ino; | ||||||
| 	tree[i].dev = dev; | 	tree[i].dev = dev; | ||||||
|  |  | ||||||
| 	return i; | 	return i; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user