Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jun 2019 18:31:08 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r348655 - head/contrib/elftoolchain/libelftc
Message-ID:  <201906041831.x54IV8vK030218@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Tue Jun  4 18:31:08 2019
New Revision: 348655
URL: https://svnweb.freebsd.org/changeset/base/348655

Log:
  libelftc: Fix some minor style bugs.
  
  Reviewed by:	emaste
  MFC after:	1 week
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D20472

Modified:
  head/contrib/elftoolchain/libelftc/elftc_string_table.c
  head/contrib/elftoolchain/libelftc/elftc_string_table_create.3

Modified: head/contrib/elftoolchain/libelftc/elftc_string_table.c
==============================================================================
--- head/contrib/elftoolchain/libelftc/elftc_string_table.c	Tue Jun  4 18:29:08 2019	(r348654)
+++ head/contrib/elftoolchain/libelftc/elftc_string_table.c	Tue Jun  4 18:31:08 2019	(r348655)
@@ -167,11 +167,9 @@ elftc_string_table_destroy(Elftc_String_Table *st)
 
 	for (n = 0; n < st->st_nbuckets; n++)
 		SLIST_FOREACH_SAFE(s, &st->st_buckets[n], ste_next, t)
-		    free(s);
+			free(s);
 	free(st->st_string_pool);
 	free(st);
-
-	return;
 }
 
 Elftc_String_Table *
@@ -318,7 +316,7 @@ elftc_string_table_insert(Elftc_String_Table *st, cons
 		if ((ste = malloc(sizeof(*ste))) == NULL)
 			return (0);
 		if ((ste->ste_idx = elftc_string_table_add_to_pool(st,
-			    string)) == 0) {
+		    string)) == 0) {
 			free(ste);
 			return (0);
 		}

Modified: head/contrib/elftoolchain/libelftc/elftc_string_table_create.3
==============================================================================
--- head/contrib/elftoolchain/libelftc/elftc_string_table_create.3	Tue Jun  4 18:29:08 2019	(r348654)
+++ head/contrib/elftoolchain/libelftc/elftc_string_table_create.3	Tue Jun  4 18:31:08 2019	(r348655)
@@ -144,7 +144,7 @@ looks up the string referenced by argument
 in the string table specified by argument
 .Ar table ,
 and if found, returns the offset associated with the string.
-The returned offset will be valid till the next call to function
+The returned offset will be valid until the next call to
 .Fn elftc_string_table_image .
 .Pp
 Function



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906041831.x54IV8vK030218>