diff options
author | obrien <obrien@FreeBSD.org> | 2012-06-27 04:39:30 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2012-06-27 04:39:30 +0000 |
commit | 7ade5e92e5aeed2f2932f313b5a0255c6777538c (patch) | |
tree | 244e3fdb9591648048fa7d3da4c6d1b9967abb1b /usr.sbin/crunch/crunchgen/crunched_main.c | |
parent | bc23332ce7bed6bcbb1db9452d848c63a713e7c2 (diff) | |
download | FreeBSD-src-7ade5e92e5aeed2f2932f313b5a0255c6777538c.zip FreeBSD-src-7ade5e92e5aeed2f2932f313b5a0255c6777538c.tar.gz |
Some amount of style(9)
-- function definitions, header ordering, and $FreeBSD$.
Diffstat (limited to 'usr.sbin/crunch/crunchgen/crunched_main.c')
-rw-r--r-- | usr.sbin/crunch/crunchgen/crunched_main.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/usr.sbin/crunch/crunchgen/crunched_main.c b/usr.sbin/crunch/crunchgen/crunched_main.c index df40d9d..f920c1f 100644 --- a/usr.sbin/crunch/crunchgen/crunched_main.c +++ b/usr.sbin/crunch/crunchgen/crunched_main.c @@ -22,8 +22,6 @@ * Author: James da Silva, Systems Design and Analysis Group * Computer Science Department * University of Maryland at College Park - * - * $FreeBSD$ */ /* * crunched_main.c - main program for crunched binaries, it branches to a @@ -33,6 +31,10 @@ * or calls one of them based on argv[1]. This allows the testing of * the crunched binary without creating all the links. */ + +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -45,7 +47,8 @@ struct stub { extern char *__progname; extern struct stub entry_points[]; -int main(int argc, char **argv, char **envp) +int +main(int argc, char **argv, char **envp) { char *slash, *basename; struct stub *ep; @@ -68,7 +71,8 @@ int main(int argc, char **argv, char **envp) } -int crunched_here(char *path) +int +crunched_here(char *path) { char *slash, *basename; struct stub *ep; @@ -83,7 +87,8 @@ int crunched_here(char *path) } -int crunched_main(int argc, char **argv, char **envp) +int +crunched_main(int argc, char **argv, char **envp) { char *slash; struct stub *ep; @@ -99,7 +104,8 @@ int crunched_main(int argc, char **argv, char **envp) } -int crunched_usage() +int +crunched_usage() { int columns, len; struct stub *ep; @@ -122,4 +128,3 @@ int crunched_usage() } /* end of crunched_main.c */ - |