~ubuntu-branches/debian/lenny/liquidwar/lenny

« back to all changes in this revision

Viewing changes to src/keyexch.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexandre Pineau
  • Date: 2006-10-25 01:17:05 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20061025011705-uhpq6sddtyoxjnqr
Tags: 5.6.3-3
* Maintainer upload.
* Acknowledge previous NMU (Closes: #391237). Thanks to Michael Ablassmeier.
* debian/rules
   + Switched to quilt for patch handling.
   + Install .desktop file and icon
* debian/control:
   + Set policy to 3.7.2.2 -- no changes.
   + remove ${misc:Depends} from Liquidwar depends (useless in our case)
   + replace {Source-Version} by {source:Version} for liquidwar-data
   + replace {Source-Version} by {binary:Version} for liquidwar-server
   + Build-depend on quilt.
   
* 010_doc.diff: (new patch from old diff.gz)
   + documentation fixes.
   
* 010_misc.diff: (new patch from old diff.gz) 
   + changed color palette of liquidwar_32x32.xpm

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
/*****************************************************************************/
24
24
/* Liquid War is a multiplayer wargame                                       */
25
 
/* Copyright (C) 1998-2004 Christian Mauduit                                 */
 
25
/* Copyright (C) 1998-2005 Christian Mauduit                                 */
26
26
/*                                                                           */
27
27
/* This program is free software; you can redistribute it and/or modify      */
28
28
/* it under the terms of the GNU General Public License as published by      */
73
73
/* static functions                                                 */
74
74
/*==================================================================*/
75
75
 
76
 
static int send_keys (int sock, CURSOR * cursors, unsigned int checksum);
77
 
static int recv_keys (int sock, CURSOR * cursors);
 
76
static int send_keys (int *sock, CURSOR * cursors, unsigned int checksum);
 
77
static int recv_keys (int *sock, CURSOR * cursors);
78
78
 
79
79
/*==================================================================*/
80
80
/* fonctions                                                        */
82
82
 
83
83
/*------------------------------------------------------------------*/
84
84
static int
85
 
send_keys (int sock, CURSOR * cursors, unsigned int checksum)
 
85
send_keys (int *sock, CURSOR * cursors, unsigned int checksum)
86
86
{
87
87
  int result = 0;
88
88
  int i;
133
133
 
134
134
/*------------------------------------------------------------------*/
135
135
static int
136
 
recv_keys (int sock, CURSOR * cursors)
 
136
recv_keys (int *sock, CURSOR * cursors)
137
137
{
138
138
  int result = 0;
139
139
  int i;
177
177
  /*
178
178
   * It's important to send keys before we receive them
179
179
   */
180
 
  result = result && send_keys (LW_KEYEXCH_SOCK, cursors, checksum);
181
 
  result = result && recv_keys (LW_KEYEXCH_SOCK, cursors);
 
180
  result = result && send_keys (&LW_KEYEXCH_SOCK, cursors, checksum);
 
181
  result = result && recv_keys (&LW_KEYEXCH_SOCK, cursors);
182
182
 
183
183
  return result;
184
184
}