chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
condition: properly allow passing back errors from condition checks
[elogind.git]
/
src
/
shared
/
architecture.h
diff --git
a/src/shared/architecture.h
b/src/shared/architecture.h
index 353d49bedf02b314602bfdd4a21af63ae0dfef8b..f1fef23cf281af782a694a6668941c0004bc7541 100644
(file)
--- a/
src/shared/architecture.h
+++ b/
src/shared/architecture.h
@@
-30,7
+30,7
@@
* focus on general family, and distuignish word width and
* endianness. */
* focus on general family, and distuignish word width and
* endianness. */
-
typedef enum Architecture
{
+
enum
{
ARCHITECTURE_X86 = 0,
ARCHITECTURE_X86_64,
ARCHITECTURE_PPC,
ARCHITECTURE_X86 = 0,
ARCHITECTURE_X86_64,
ARCHITECTURE_PPC,
@@
-60,9
+60,9
@@
typedef enum Architecture {
ARCHITECTURE_CRIS,
_ARCHITECTURE_MAX,
_ARCHITECTURE_INVALID = -1
ARCHITECTURE_CRIS,
_ARCHITECTURE_MAX,
_ARCHITECTURE_INVALID = -1
-}
Architecture
;
+};
-
Architecture
uname_architecture(void);
+
int
uname_architecture(void);
/*
* LIB_ARCH_TUPLE should resolve to the local library path
/*
* LIB_ARCH_TUPLE should resolve to the local library path
@@
-188,5
+188,5
@@
Architecture uname_architecture(void);
#error "Please register your architecture here!"
#endif
#error "Please register your architecture here!"
#endif
-const char *architecture_to_string(
Architecture
a) _const_;
-
Architecture
architecture_from_string(const char *s) _pure_;
+const char *architecture_to_string(
int
a) _const_;
+
int
architecture_from_string(const char *s) _pure_;