svn commit: r358546 - head/usr.bin/elfctl

Ed Maste emaste at FreeBSD.org
Mon Mar 2 14:34:28 UTC 2020


Author: emaste
Date: Mon Mar  2 14:34:26 2020
New Revision: 358546
URL: https://svnweb.freebsd.org/changeset/base/358546

Log:
  elfctl: tiny style(9) cleanup, use bool where appropriate

Modified:
  head/usr.bin/elfctl/elfctl.c

Modified: head/usr.bin/elfctl/elfctl.c
==============================================================================
--- head/usr.bin/elfctl/elfctl.c	Mon Mar  2 14:06:50 2020	(r358545)
+++ head/usr.bin/elfctl/elfctl.c	Mon Mar  2 14:34:26 2020	(r358546)
@@ -85,12 +85,12 @@ main(int argc, char **argv)
 	GElf_Ehdr ehdr;
 	Elf *elf;
 	Elf_Kind kind;
-	int ch, fd, editfeatures, retval;
+	int ch, fd, retval;
 	char *features;
-	bool lflag;
+	bool editfeatures, lflag;
 
 	lflag = 0;
-	editfeatures = 0;
+	editfeatures = false;
 	retval = 0;
 	features = NULL;
 
@@ -105,7 +105,7 @@ main(int argc, char **argv)
 			break;
 		case 'e':
 			features = optarg;
-			editfeatures = 1;
+			editfeatures = true;
 			break;
 		case 'h':
 		default:


More information about the svn-src-head mailing list