NetworkManager/clients/cli
Thomas Haller ca4b530742 cli: use NM_CMP*() macros for compare_aps() in "clients/cli/devices.c"
The compare pattern seems simple, but seems error prone and subtle.
NM_CMP*() avoids that.

For example, nm_access_point_get_strength() returns an uint8_t.
C will promote those values to "int" before doing the subtraction.
Likewise, nm_access_point_get_frequency() returns a uint32_t. This
gets promoted to unsigned int when doing the subtraction. Afterwards,
that is converted to a signed int.
So both cases were in fact correct. But such things are not obvious.

Also, as fallback sort by D-Bus path. While that is not semantically
useful, we should use a defined sort order.
2020-03-16 13:40:51 +01:00
..
agent.c clients: polkit-agent: implement polkit agent without using libpolkit 2019-12-24 10:13:51 +01:00
agent.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
common.c cli: don't use GIOChannel to watch plain file descriptor for nmc_readline_helper() 2020-01-13 15:46:04 +01:00
common.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
connections.c nmcli: remove interface length check in nmcli 2020-02-17 15:27:35 +01:00
connections.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
devices.c cli: use NM_CMP*() macros for compare_aps() in "clients/cli/devices.c" 2020-03-16 13:40:51 +01:00
devices.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
general.c shared: drop _STATIC variant of macros that define functions 2020-02-13 17:17:07 +01:00
general.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
meson.build clients: polkit-agent: implement polkit agent without using libpolkit 2019-12-24 10:13:51 +01:00
nmcli-completion cli: make nmcli do its own command completion 2017-02-13 16:32:15 +01:00
nmcli.c cli: honor NO_COLOR environment variable to prevent automatic ASCII colors 2019-10-08 12:18:20 +02:00
nmcli.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
polkit-agent.c clients: polkit-agent: implement polkit agent without using libpolkit 2019-12-24 10:13:51 +01:00
polkit-agent.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
settings.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
settings.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
utils.c cli: use nm_utils_bin2hexstr_full() in ssid_to_hex() 2020-03-16 13:40:51 +01:00
utils.h cli: expose device D-Bus path 2019-12-10 17:57:10 +01:00