about summary refs log tree commit diff
path: root/intl/dcigettext.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-05-08 04:50:45 +0000
committerUlrich Drepper <drepper@redhat.com>2000-05-08 04:50:45 +0000
commitd1c2a14cdfd71fea547c9ec0db7eff85991bdd11 (patch)
tree200fb3d55b6d160fec0cc21978851f589e48fc40 /intl/dcigettext.c
parent93414bb97c8d4af09fbc6ed493e5c904f27a5173 (diff)
downloadglibc-d1c2a14cdfd71fea547c9ec0db7eff85991bdd11.tar.gz
glibc-d1c2a14cdfd71fea547c9ec0db7eff85991bdd11.tar.xz
glibc-d1c2a14cdfd71fea547c9ec0db7eff85991bdd11.zip
Update.
2000-05-07  Mark Kettenis  <kettenis@gnu.org>

	* nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
	Remove duplicate <errno.h> include.  Remove inclusion of
	<libintl.h> and "nsswitch.h".
	(set_cloexec_flag): New function, broken out of dbopen.
	(dbopen): Changed return type to `enum
	nss_status'.  Mostly rewritten to make sure that we do not report
	NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
	(internal_setent): Change return type to nss_status.
	Document, and make sure that the function
	behaves accordingly.  Make dynamically loading the database
	library really thread-safe and return NSS_STATUS_UNAVAIL if it
	failed.
	(db_cursor): Return ENOMEM is memory allocation failed.  Remove
	unecessary casts.
	* nss/nss_db/dummy-db.h: Add copyright notice.  Improve
	documentation.
	(struct dbc24, struct dbc27): Use DBT type in parameter lists for
	c_get function member.
	* nss/nss_db/nss_db.h: Add and tweak some comments.
	(DBT): Move typedef before NSS_DBC typedef.
	(NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
Diffstat (limited to 'intl/dcigettext.c')
-rw-r--r--intl/dcigettext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/intl/dcigettext.c b/intl/dcigettext.c
index b52fbd58c4..0de89d0abb 100644
--- a/intl/dcigettext.c
+++ b/intl/dcigettext.c
@@ -733,8 +733,8 @@ _nl_find_msg (domain_file, msgid, index)
  found:
   /* The translation was found at index ACT.  If we have to convert the
      string to use a different character set, this is the time.  */
-  result = (char *) domain->data
-	   + W (domain->must_swap, domain->trans_tab[act].offset);
+  result = ((char *) domain->data
+	    + W (domain->must_swap, domain->trans_tab[act].offset));
 
 #if defined _LIBC || HAVE_ICONV
   if (