~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-security

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

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);