Mercurial > pidgin
view fix-casts.sh @ 32509:a3283d6a19b2
*** Plucked rev 4b5c688e1486f88c95bbe6946367a00b2d1e02dd (markdoliner@pidgin.im):
Adjust this debug statement. listener_ip is based off of the bos connection
fd, not the listener_fd, so it's more useful to log info about the bos conn
fd.
*** Plucked rev 9ac3dc3dac01d52f74ef1da3fe9122a233650e5a (markdoliner@pidgin.im):
We don't need to abort the file transfer attempt entirely when this happens.
We can just try the next connection method (both users connect to a 3rd
party proxy)
*** Plucked rev 77872b7f18741bca0e5bda735debf9ea3e3d386f (markdoliner@pidgin.im):
Move this check up a level so that it affects direct connections, too.
I think this will fix the crash reported in http://trac.adium.im/ticket/15839
Still not sure why ip_atoi fails here.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 13 Feb 2012 03:32:29 +0000 |
parents | c3ca613ab550 |
children |
line wrap: on
line source
#!/bin/sh if [ $# -eq 0 ]; then echo "Usage: `basename "$0"` PurpleFoo..." echo echo "This script searches the *current working directory* and replaces casts" echo "with GObject-style type checking and casting macros." echo 'For example, "(PurpleBuddy *)b" becomes "PURPLE_BUDDY(b)".' exit 0 fi for struct in $* ; do cast=`echo $struct | sed "s|[A-Z]|_\0|g" | tr "a-z" "A-Z" | sed "s|^_||"` for file in `grep -rl "([[:space:]]*$struct[[:space:]]*\*[[:space:]]*)" . --include=*.c --exclude=purple-client-bindings.c` ; do sed -i "s|([[:space:]]*$struct[[:space:]]*\*[[:space:]]*)[[:space:]]*(|$cast(|g" $file sed -i "s|([[:space:]]*$struct[[:space:]]*\*[[:space:]]*)[[:space:]]*\([^(][^,);]*\)|$cast(\1)|g" $file done done