~ubuntu-branches/ubuntu/hardy/postgresql-8.4/hardy-backports

« back to all changes in this revision

Viewing changes to src/interfaces/libpq/pthread-win32.c

  • Committer: Bazaar Package Importer
  • Author(s): Ubuntu Archive Backport
  • Date: 2009-11-09 13:46:16 UTC
  • mfrom: (5.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091109134616-ae14l9tr3g7p2t9y
Tags: 8.4.1-1~hardy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
*
6
6
* Copyright (c) 2004-2009, PostgreSQL Global Development Group
7
7
* IDENTIFICATION
8
 
*       $PostgreSQL: pgsql/src/interfaces/libpq/pthread-win32.c,v 1.18 2009/01/01 17:24:03 momjian Exp $
 
8
*       $PostgreSQL: pgsql/src/interfaces/libpq/pthread-win32.c,v 1.19 2009/06/11 14:49:14 momjian Exp $
9
9
*
10
10
*-------------------------------------------------------------------------
11
11
*/
35
35
int
36
36
pthread_mutex_init(pthread_mutex_t *mp, void *attr)
37
37
{
38
 
        *mp = (CRITICAL_SECTION *)malloc(sizeof(CRITICAL_SECTION));
 
38
        *mp = (CRITICAL_SECTION *) malloc(sizeof(CRITICAL_SECTION));
39
39
        if (!*mp)
40
40
                return 1;
41
41
        InitializeCriticalSection(*mp);