chiark / gitweb /
journald: process SIGBUS for the memory maps we set up
[elogind.git] / src / shared / efivars.c
index f18f5c4b16aa4b81057c5e2cbb96f0968f26e1a8..a3195745276f603f8ce80bc21518bfcbbc1f6f5c 100644 (file)
@@ -330,7 +330,7 @@ static int boot_id_hex(const char s[4]) {
                 else if (s[i] >= 'A' && s[i] <= 'F')
                         id |= (s[i] - 'A' + 10) << (3 - i) * 4;
                 else
-                        return -1;
+                        return -EINVAL;
 
         return id;
 }