diff options
author | Grant Erickson <erick205@umn.edu> | 2023-12-01 23:29:17 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2023-12-08 01:55:44 +0100 |
commit | cd170367664159868072dbb5ea4c504771697aff (patch) | |
tree | 7be1820d640cc7ba08ee67eb350a6d305b205b10 | |
parent | 3dcf18fc43d065f346e2048c18972439ce55de0f (diff) | |
download | connman-cd170367664159868072dbb5ea4c504771697aff.tar.gz |
ipconfig: Use 'RT_SCOPE_*' mnemonics.
This leverages 'RT_SCOPE_*' mnemonics rather than magic numbers for
'scope2str'.
-rw-r--r-- | src/ipconfig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipconfig.c b/src/ipconfig.c index 55a05694f..e26fc1379 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -263,9 +263,9 @@ static const char *type2str(unsigned short type) static const char *scope2str(unsigned char scope) { switch (scope) { - case 0: + case RT_SCOPE_UNIVERSE: return "UNIVERSE"; - case 253: + case RT_SCOPE_LINK: return "LINK"; } |