summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-09-01 16:01:14 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-09-01 16:01:14 +0200
commit1b4db8ed14c251f06c9722aa13183d5ba89bf6ce (patch)
treec547339a335d057df4d18e18d5b534a44ff08d1d
parent6efb555132586352958e2d91bc6ec06444ac7c3d (diff)
downloadfail-1b4db8ed14c251f06c9722aa13183d5ba89bf6ce.tar.gz
fail-1b4db8ed14c251f06c9722aa13183d5ba89bf6ce.tar.xz
fail-1b4db8ed14c251f06c9722aa13183d5ba89bf6ce.zip
style
-rw-r--r--fail.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/fail.c b/fail.c
index 90f6cb7..207854a 100644
--- a/fail.c
+++ b/fail.c
@@ -79,17 +79,17 @@ killme()
 void illegalins()
 {
 #if defined(__x86_64__) || defined(__i386__)
-        __asm__ __volatile__( "ud1" : : : "memory" );
+	__asm__ __volatile__ ("ud1" : : : "memory");
 #elif defined(__arm__)
-        __asm__ __volatile__(
+	__asm__ __volatile__ (
 	#ifndef __thumb__
 		".word 0xe7f000f0"
 	#else
 		".short 0xdeff"
 	#endif
-                : : : "memory");
+		: : : "memory");
 #elif defined(__aarch64__)
-	__asm__ __volatile__( ".word 0x00800011" : : : "memory" );
+	__asm__ __volatile__ (".word 0x00800011" : : : "memory");
 #else
 	#error implement illegalins for this architecture
 #endif
@@ -119,21 +119,21 @@ main(int argc, char *argv[])
 	int c;
 
 	while ((c = getopt(argc, argv, "123Oacdikrst")) != -1) {
-        	switch (c) {
+		switch (c) {
 		case '1': exit(-1); break;
 		case '2': exit(2); break;
 		case '3': exit(111); break;
-                case 'c': violate_seccomp(); break;
+		case 'c': violate_seccomp(); break;
 		case 'd': divtrap(); break;
 		case 'i': illegalins(); break;
 		case 't': trap(); break;
-                case 'O': oom(); break;
-                case 'a': abortme(); break;
-                case 'k': killme(); break;
-                case 'r': recurse(0); break;
-                case 's': segfault(); break;                
+		case 'O': oom(); break;
+		case 'a': abortme(); break;
+		case 'k': killme(); break;
+		case 'r': recurse(0); break;
+		case 's': segfault(); break;
 		}
-        }
+	}
 
 	write(2, "Usage: fail [-123Oacdikrst]\n", 28);
 	exit(1);