~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/drizzle.c

  • Committer: Lee Bieber
  • Date: 2010-12-23 23:11:00 UTC
  • mfrom: (2024.1.1 clean)
  • Revision ID: kalebral@gmail.com-20101223231100-0rqirgz7ugkl10yp
Merge Brian - session list cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
#include "libdrizzle/common.h"
43
43
 
 
44
 
44
45
/**
45
46
 * @addtogroup drizzle_static Static Drizzle Declarations
46
47
 * @ingroup drizzle
91
92
  WSADATA wsaData;
92
93
  if ( WSAStartup( MAKEWORD(2,2), &wsaData ) != 0 )
93
94
    printf("Error at WSAStartup()\n");
94
 
#else
 
95
#endif
95
96
  struct sigaction act;
96
97
  memset(&act, 0, sizeof(act));
97
98
 
98
99
  act.sa_handler = SIG_IGN;
99
100
  sigaction(SIGPIPE, &act, NULL);
100
 
#endif
101
101
 
102
102
  if (drizzle == NULL)
103
103
  {
426
426
 
427
427
  if (drizzle->pfds_size < drizzle->con_count)
428
428
  {
429
 
    pfds= (struct pollfd *)realloc(drizzle->pfds, drizzle->con_count * sizeof(struct pollfd));
 
429
    pfds= realloc(drizzle->pfds, drizzle->con_count * sizeof(struct pollfd));
430
430
    if (pfds == NULL)
431
431
    {
432
432
      drizzle_set_error(drizzle, "drizzle_con_wait", "realloc");