~ubuntu-branches/ubuntu/maverick/transmission/maverick-updates

« back to all changes in this revision

Viewing changes to third-party/libevent/WIN32-Code/win32.c

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson, Krzysztof Klimonda, Chris Coulson
  • Date: 2009-09-09 09:06:11 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20090909090611-09ai2hyo66h1dhv8
Tags: 1.74-0ubuntu1
[ Krzysztof Klimonda ]
* Merge from debian unstable, remaining changes:
  - debian/control:
    + Added replaces & provides clutch (now included as part of transmission).
    + add liblaunchpad-integration to Build-Depends
  - debian/rules:
    + Create a PO template during package build.
  - debian/patches/01_lpi.patch:
    + Integrate Transmission with Launchpad
  - debian/patches/20_add_X-Ubuntu-Gettext-Domain.diff:
    + Add X-Ubuntu-Gettext-Domain to .desktop file.
* debian/control:
  - add lsb-release to Build-Depends
* This includes the QT client in transmission-qt.

[ Chris Coulson ]
* Update to new upstream version 1.74 (LP: #418367):
  - Better data recovery in the case of an OS or Transmission crash
  - If a data file is moved, stop the torrent instead of redownloading 
    it (LP: #419304).
  - Fix bug that didn't list some peers in the resume file and in PEX
  - More helpful torrent error messages
  - DHT now honors the bind-address-ipv4 configuration option
  - Fix Debian build error with miniupnpc
  - Fix Cygwin build error with strtold
  - Update to a newer snapshot of miniupnpc
  - Fix crash that occurred when adding torrents on some desktops
  - Synchronize the statusbar's and torrent list's speeds
  - Fix the Properties dialog's "Origin" field for multiple torrents
* debian/rules, debian/control:
  - Don't run autoreconf at build time and don't build-dep on libtool.
* debian/control:
  - transmission-common replaces transmission-gtk (<< 1.74) rather than
    (<= 1.73-1).
* Refreshed patches:
  - 01_lpi.patch.
  - dont_build_libevent.patch.
  - qt_client_use_system_libevent.patch.
* Dropped patches not needed anymore:
  - updateminiupnpcstrings_double_escape_slash.patch
* Added 99_autoreconf.patch for autotools update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
355
355
        unsigned j, i;
356
356
        int fd_count;
357
357
        SOCKET s;
 
358
        struct event_entry *ent;
358
359
 
359
360
        fd_set_copy(win32op->readset_out, win32op->readset_in);
360
361
        fd_set_copy(win32op->exset_out, win32op->readset_in);
398
399
        if (win32op->exset_out->fd_count) {
399
400
                i = rand() % win32op->exset_out->fd_count;
400
401
                for (j=0; j<win32op->exset_out->fd_count; ++j) {
401
 
                        if (++i >= win32op-exset_out->fd_count)
 
402
                        if (++i >= win32op->exset_out->fd_count)
402
403
                                i = 0;
403
404
                        s = win32op->exset_out->fd_array[i];
404
405
                        if ((ent = get_event_entry(win32op, s, 0)) && ent->read_event)
408
409
        if (win32op->writeset_out->fd_count) {
409
410
                i = rand() % win32op->writeset_out->fd_count;
410
411
                for (j=0; j<win32op->writeset_out->fd_count; ++j) {
411
 
                        if (++i >= win32op-exset_out->fd_count)
 
412
                        if (++i >= win32op->exset_out->fd_count)
412
413
                                i = 0;
413
414
                        s = win32op->writeset_out->fd_array[i];
414
415
                        if ((ent = get_event_entry(win32op, s, 0)) && ent->write_event)