public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [Patch] Current glibc 2.1.3 doesn't build: gconv_db broken
@ 1999-12-08  2:51 Andreas Jaeger
  1999-12-08  8:52 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Jaeger @ 1999-12-08  2:51 UTC (permalink / raw)
  To: GNU libc hacker

The last backported patch from 2.2 for gconv_db is broken.  I'm
appending the trivial fix.

Andreas

1999-12-08  Andreas Jaeger  <aj@suse.de>

	* iconv/gconv_db.c (increment_counter): Fix problems in last
	patch: Rename identifiers for glibc 2.1 usage.

============================================================
Index: iconv/gconv_db.c
--- iconv/gconv_db.c	1999/12/08 04:34:17	1.24.2.1
+++ iconv/gconv_db.c	1999/12/08 10:39:42
@@ -284,24 +284,24 @@
 #ifndef STATIC_GCONV
 static int
 internal_function
-increment_counter (struct __gconv_step *steps, size_t nsteps)
+increment_counter (struct gconv_step *steps, size_t nsteps)
 {
   /* Increment the user counter.  */
   size_t cnt = nsteps;
-  int result = __GCONV_OK;
+  int result = GCONV_OK;
 
   while (cnt-- > 0)
-    if (steps[cnt].__counter++ == 0)
+    if (steps[cnt].counter++ == 0)
       {
-	steps[cnt].__shlib_handle =
-	  __gconv_find_shlib (steps[cnt].__modname);
-	if (steps[cnt].__shlib_handle == NULL)
+	steps[cnt].shlib_handle =
+	  __gconv_find_shlib (steps[cnt].modname);
+	if (steps[cnt].shlib_handle == NULL)
 	  {
 	    /* Oops, this is the second time we use this module (after
 	       unloading) and this time loading failed!?  */
 	    while (++cnt < nsteps)
-	      __gconv_release_shlib (steps[cnt].__shlib_handle);
-	    result = __GCONV_NOCONV;
+	      __gconv_release_shlib (steps[cnt].shlib_handle);
+	    result = GCONV_NOCONV;
 	    break;
 	  }
       }

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Patch] Current glibc 2.1.3 doesn't build: gconv_db broken
  1999-12-08  2:51 [Patch] Current glibc 2.1.3 doesn't build: gconv_db broken Andreas Jaeger
@ 1999-12-08  8:52 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 1999-12-08  8:52 UTC (permalink / raw)
  To: Andreas Jaeger; +Cc: GNU libc hacker

Andreas Jaeger <aj@suse.de> writes:

> The last backported patch from 2.2 for gconv_db is broken.  I'm
> appending the trivial fix.

I few more things were missing.  My system crashed yesterday while I
did this and I forgot to check for a auto-save file.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-12-08  8:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-08  2:51 [Patch] Current glibc 2.1.3 doesn't build: gconv_db broken Andreas Jaeger
1999-12-08  8:52 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).