chiark / gitweb /
util: introduce PERSONALITY_INVALID as macro for 0xffffffffLU
[elogind.git] / src / shared / util.c
index 62c1739c9326933456ee09619ad35bd1947ed777..d17359abd0a340fc81706a3777da1a12fb1f65bf 100644 (file)
@@ -4817,10 +4817,7 @@ unsigned long personality_from_string(const char *p) {
                 return PER_LINUX;
 #endif
 
-        /* personality(7) documents that 0xffffffffUL is used for
-         * querying the current personality, hence let's use that here
-         * as error indicator. */
-        return 0xffffffffUL;
+        return PERSONALITY_INVALID;
 }
 
 const char* personality_to_string(unsigned long p) {