all: use g_error_matches()
authorDan Winship <danw@gnome.org>
Tue, 8 Apr 2014 16:00:09 +0000 (12:00 -0400)
committerThomas Haller <thaller@redhat.com>
Thu, 3 Mar 2016 17:54:20 +0000 (18:54 +0100)
commit6265398b6e33ea67d73c592dd3a88f3fafc5bc7a
tree62fe364fea6ee0374412baa277b8d41711eb6a8f
parent01b9b4104c365002fae5e45b564956062fe146d4
all: use g_error_matches()

Use g_error_matches() where we're testing error codes. In particular,
use it rather than looking at only ->code and not also ->domain, which
is just wrong.

[thaller@redhat.com: rebase and modify original patch]
clients/cli/connections.c
libnm-glib/nm-remote-settings.c
src/settings/nm-settings-connection.c