summaryrefslogtreecommitdiffstats
path: root/usr.bin/brandelf
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-12-03 00:00:22 +0000
committermarkm <markm@FreeBSD.org>2001-12-03 00:00:22 +0000
commitefb1461388597f0cba762d8e262ae8329506e7be (patch)
tree42babf70bcc915e2003d0ccf22fc35a813b53ebb /usr.bin/brandelf
parentfc99e4f7656bd9104582ef9a71d1945928a186be (diff)
downloadFreeBSD-src-efb1461388597f0cba762d8e262ae8329506e7be.zip
FreeBSD-src-efb1461388597f0cba762d8e262ae8329506e7be.tar.gz
Style fixes.
Use __FBSDID(). Be consistent WRT ANSI use. OK'ed by: obrien
Diffstat (limited to 'usr.bin/brandelf')
-rw-r--r--usr.bin/brandelf/brandelf.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/usr.bin/brandelf/brandelf.c b/usr.bin/brandelf/brandelf.c
index dbbacc4..451dcd3 100644
--- a/usr.bin/brandelf/brandelf.c
+++ b/usr.bin/brandelf/brandelf.c
@@ -27,25 +27,24 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef lint
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
+#include <sys/cdefs.h>
+
+__FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/elf_common.h>
+#include <sys/errno.h>
+#include <err.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <sys/errno.h>
-#include <err.h>
static int elftype(const char *);
static const char *iselftype(int);
static void printelftypes(void);
-static void usage __P((void));
+static void usage(void);
struct ELFtypes {
const char *str;
@@ -164,7 +163,7 @@ fail:
}
static void
-usage()
+usage(void)
{
fprintf(stderr, "usage: brandelf [-f ELF ABI number] [-v] [-l] [-t string] file ...\n");
exit(1);
@@ -197,7 +196,7 @@ elftype(const char *elfstrtype)
}
static void
-printelftypes()
+printelftypes(void)
{
size_t elfwalk;
OpenPOWER on IntegriCloud