chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sd-bus: make BUS_ERROR_MAP_ELF_USE() use a const variable
[elogind.git]
/
src
/
libsystemd
/
sd-bus
/
bus-error.h
diff --git
a/src/libsystemd/sd-bus/bus-error.h
b/src/libsystemd/sd-bus/bus-error.h
index 66c98b0b3881271839995c66c1f6be024f907047..fb0199c948f677ba4e13bc4207c0d2b9936bee29 100644
(file)
--- a/
src/libsystemd/sd-bus/bus-error.h
+++ b/
src/libsystemd/sd-bus/bus-error.h
@@
-56,7
+56,7
@@
int bus_error_set_errnofv(sd_bus_error *e, int error, const char *format, va_lis
#define BUS_ERROR_MAP_ELF_USE(errors) \
extern const sd_bus_error_map errors[]; \
#define BUS_ERROR_MAP_ELF_USE(errors) \
extern const sd_bus_error_map errors[]; \
- __attribute__ ((used)) static const sd_bus_error_map * CONCATENATE(errors ## _copy_, __COUNTER__) = errors;
+ __attribute__ ((used)) static const sd_bus_error_map *
const
CONCATENATE(errors ## _copy_, __COUNTER__) = errors;
/* We use something exotic as end marker, to ensure people build the
* maps using the macsd-ros. */
/* We use something exotic as end marker, to ensure people build the
* maps using the macsd-ros. */