chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tree-wide: there is no ENOTSUP on linux
[elogind.git]
/
src
/
libsystemd
/
sd-rtnl
/
rtnl-types.c
diff --git
a/src/libsystemd/sd-rtnl/rtnl-types.c
b/src/libsystemd/sd-rtnl/rtnl-types.c
index 557dc59455c8e5e3af7f9e1394242aa34ddd0836..e21c8986684394cffaf594cdc778b832ba9400c5 100644
(file)
--- a/
src/libsystemd/sd-rtnl/rtnl-types.c
+++ b/
src/libsystemd/sd-rtnl/rtnl-types.c
@@
-443,12
+443,12
@@
int type_system_get_type(const NLTypeSystem *type_system, const NLType **ret, ui
assert(type_system->types);
if (type > type_system->max)
assert(type_system->types);
if (type > type_system->max)
- return -E
NOTSU
P;
+ return -E
OPNOTSUP
P;
nl_type = &type_system->types[type];
if (nl_type->type == NLA_UNSPEC)
nl_type = &type_system->types[type];
if (nl_type->type == NLA_UNSPEC)
- return -E
NOTSU
P;
+ return -E
OPNOTSUP
P;
*ret = nl_type;
*ret = nl_type;
@@
-503,7
+503,7
@@
int type_system_union_get_type_system(const NLTypeSystemUnion *type_system_union
type = type_system_union->lookup(key);
if (type < 0)
type = type_system_union->lookup(key);
if (type < 0)
- return -E
NOTSU
P;
+ return -E
OPNOTSUP
P;
assert(type < type_system_union->num);
assert(type < type_system_union->num);
@@
-521,11
+521,11
@@
int type_system_union_protocol_get_type_system(const NLTypeSystemUnion *type_sys
assert(ret);
if (protocol >= type_system_union->num)
assert(ret);
if (protocol >= type_system_union->num)
- return -E
NOTSU
P;
+ return -E
OPNOTSUP
P;
type_system = &type_system_union->type_systems[protocol];
if (type_system->max == 0)
type_system = &type_system_union->type_systems[protocol];
if (type_system->max == 0)
- return -E
NOTSU
P;
+ return -E
OPNOTSUP
P;
*ret = type_system;
*ret = type_system;