pidgin/pidgin
Clone
Summary
Browse
Changes
Graph
bonjour: refactor _match_buddies_by_address
2021-02-28, Arkadiy Illarionov
adaa32e9d793
bonjour: refactor _match_buddies_by_address
* Use `g_slist_find_custom` instead of manual search. `BonjourBuddy` doesn't have `NULL` data in `ips` list.
* Add `_find_match_buddies_by_address` to reduce copypaste.
* Change comparisons order to reduce nesting.
Testing Done:
Compile.
Reviewed at https://reviews.imfreedom.org/r/545/
syntax
:
glob
.*.
swp
.
DS_Store
.
flatpak
-
builder
*.
pyc
*~
\
#
*\
#
subprojects
/*/
syntax
:
regexp
^
build
(.+)?\/
win32
-
install
-
dir
(\.
release
)?
po
\/
pidgin
\.
pot$