Fix ecpg thread warning

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Fix ecpg thread warning
Дата
Msg-id 200403141447.i2EEl9u22989@candle.pha.pa.us
обсуждение исходный текст
Список pgsql-patches
The following applied patch removes a warning in the use of
ecpg_sqlca_key_destructor. The function returns nothing, and its later
use by pthread_key_create expects it to return nothing.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
Index: src/interfaces/ecpg/ecpglib/misc.c
===================================================================
RCS file: /cvsroot/pgsql-server/src/interfaces/ecpg/ecpglib/misc.c,v
retrieving revision 1.19
diff -c -c -r1.19 misc.c
*** src/interfaces/ecpg/ecpglib/misc.c    14 Mar 2004 12:16:30 -0000    1.19
--- src/interfaces/ecpg/ecpglib/misc.c    14 Mar 2004 14:43:09 -0000
***************
*** 118,124 ****
  }

  #ifdef ENABLE_THREAD_SAFETY
! static void *ecpg_sqlca_key_destructor(void *arg)
  {
    if( arg != NULL )
      free(arg); /* sqlca structure allocated in ECPGget_sqlca */
--- 118,124 ----
  }

  #ifdef ENABLE_THREAD_SAFETY
! static void ecpg_sqlca_key_destructor(void *arg)
  {
    if( arg != NULL )
      free(arg); /* sqlca structure allocated in ECPGget_sqlca */

В списке pgsql-patches по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: ECPG - Remove need for "AT connection" when using threads
Следующее
От: Tom Lane
Дата:
Сообщение: Re: libpq v2 protocol error: COPY FROM STDIN, PQputCopyEnd()