~ubuntu-branches/ubuntu/wily/openocd/wily

« back to all changes in this revision

Viewing changes to src/helper/replacements.c

  • Committer: Bazaar Package Importer
  • Author(s): Uwe Hermann
  • Date: 2009-11-25 12:20:04 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091125122004-4cnrzqw7v9qu064n
Tags: 0.3.1-1
* New upstream release (Closes: #554598, #537740).
* Add sh4 (instead of sh) to the list of architectures (Closes: #555553).
* Standards-Version: 3.8.3 (no changes required).
* debian/watch: Add file.
* debian/docs: Updates, some files were removed, some added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *   Copyright (C) 2006 by Dominic Rath                                    *
3
3
 *   Dominic.Rath@gmx.de                                                   *
4
4
 *                                                                         *
5
 
 *   Copyright (C) 2007,2008 �yvind Harboe                                 *
 
5
 *   Copyright (C) 2007,2008 Øyvind Harboe                                 *
6
6
 *   oyvind.harboe@zylin.com                                               *
7
7
 *                                                                         *
8
8
 *   Copyright (C) 2008 by Spencer Oliver                                  *
169
169
        /* build an array of handles for non-sockets */
170
170
        for (i = 0; i < max_fd; i++) {
171
171
                if (SAFE_FD_ISSET(i, rfds) || SAFE_FD_ISSET(i, wfds) || SAFE_FD_ISSET(i, efds)) {
172
 
                        long handle = _get_osfhandle(i);
 
172
                        intptr_t handle = (intptr_t) _get_osfhandle(i);
173
173
                        handles[n_handles] = (HANDLE)handle;
174
174
                        if (handles[n_handles] == INVALID_HANDLE_VALUE) {
175
175
                                /* socket */
244
244
                                        if (WAIT_OBJECT_0 == WaitForSingleObject(handles[i], 0)) {
245
245
                                                if (SAFE_FD_ISSET(handle_slot_to_fd[i], rfds)) {
246
246
                                                        DWORD dwBytes;
247
 
                                                        long handle = _get_osfhandle(handle_slot_to_fd[i]);
 
247
                                                        intptr_t handle = (intptr_t) _get_osfhandle(handle_slot_to_fd[i]);
248
248
 
249
249
                                                        if (PeekNamedPipe((HANDLE)handle, NULL, 0, NULL, &dwBytes, NULL))
250
250
                                                        {