chiark / gitweb /
tree-wide: there is no ENOTSUP on linux
[elogind.git] / src / login / logind-session.c
index ce5dbb4d5ccfa0a62d5da46c7cff8b7ac64df5f7..e9b179067c51a21e0dd663d4901995323fd897b6 100644 (file)
@@ -461,7 +461,7 @@ int session_activate(Session *s) {
         assert(s->user);
 
         if (!s->seat)
-                return -ENOTSUP;
+                return -EOPNOTSUPP;
 
         if (s->seat->active == s)
                 return 0;
@@ -469,7 +469,7 @@ int session_activate(Session *s) {
         /* on seats with VTs, we let VTs manage session-switching */
         if (seat_has_vts(s->seat)) {
                 if (!s->vtnr)
-                        return -ENOTSUP;
+                        return -EOPNOTSUPP;
 
                 return chvt(s->vtnr);
         }