~prateek.karandikar/ubuntu/precise/pidgin/add_quicklist

« back to all changes in this revision

Viewing changes to libpurple/protocols/yahoo/yahoo_filexfer.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-08-11 14:16:15 UTC
  • mfrom: (1.3.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20100811141615-lsqya0vlqrnu14lo
Tags: 1:2.7.3-1ubuntu1
* Resync on Debian, workaround build issue (lp:#600952) 
* debian/control:
  - Build-Depends on liblaunchpad-integration-dev
  - Drop libpurple0 dependency from libpurple-bin
  - Drop pidgin-data dependency from libpurple0
  - Recommends pidgin-libnotify
* debian/libpurple0.symbols: 
  - add epochs
* debian/patches/02_lpi.patch:
  - launchpad integration
* debian/patches/04_let_crasher_for_apport.patch:
  - stop catching the SIGSEGV signal and let apport handle it
* debian/patches/05_default_to_irc_ubuntu_com.patch:
  - set the default IRC server to irc.ubuntu.com
* debian/patches/10_docklet_default_off.patch:
  - default behavior to have no notification area icon.
* debian/patches/11_buddy_list_really_show.patch:
  - the buddy list tries harder to appear.  This fixes some issues with it
    not appearing.
* debian/patches/ 13_sounds_and_timers.patch:
  - adjusts the time out for sounds to be 15 seconds, 
    which helps get fewer spurious login notifications on slow connections.
* debian/patches/60_1024x600_gtk*.c.patch: 
  - add scrollbars into preferences and pounce dialogs
* debian/prefs.xml: 
  - Update to set the notify plugin prefs /plugins/gtk/X11/notify/*, 
    set /pidgin/plugins/loaded to load the notify plugin and enable 
    the standard logging options by default
* debian/rules:
  - install a launcher in the message indicator
  - set translation domain and update template
  - use simple-patchsys rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
983
983
        struct yahoo_xfer_data *xd;
984
984
        struct sockaddr_in *addr;
985
985
        struct yahoo_packet *pkt;
986
 
        long actaddr;
987
 
        long a,b,c,d;
 
986
        unsigned long actaddr;
 
987
        unsigned char a,b,c,d;
988
988
        PurpleConnection *gc;
989
989
        PurpleAccount *account;
990
990
        YahooData *yd;
1018
1018
        /* TODO:actually, u must try with addr no.1 , if its not working addr no.2 ..... */
1019
1019
        addr = hosts->data;
1020
1020
        actaddr = addr->sin_addr.s_addr;
1021
 
        d = actaddr % 256;
1022
 
        actaddr = (actaddr - d) / 256;
1023
 
        c = actaddr % 256;
1024
 
        actaddr = (actaddr - c) / 256;
1025
 
        b = actaddr % 256;
1026
 
        actaddr = (actaddr - b) / 256;
1027
 
        a = actaddr;
 
1021
        d = actaddr & 0xff;
 
1022
        actaddr >>= 8;
 
1023
        c = actaddr & 0xff;
 
1024
        actaddr >>= 8;
 
1025
        b = actaddr & 0xff;
 
1026
        actaddr >>= 8;
 
1027
        a = actaddr & 0xff;
1028
1028
        if(yd->jp)
1029
1029
                xd->port = YAHOOJP_XFER_RELAY_PORT;
1030
1030
        else
1031
1031
                xd->port = YAHOO_XFER_RELAY_PORT;
1032
1032
 
1033
 
        url = g_strdup_printf("%ld.%ld.%ld.%ld", d, c, b, a);
 
1033
        url = g_strdup_printf("%u.%u.%u.%u", d, c, b, a);
1034
1034
 
1035
1035
        /* Free the address... */
1036
1036
        g_free(hosts->data);