summaryrefslogtreecommitdiff
path: root/src/libudev/util.h
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2013-08-02 20:46:21 -0400
committerAnthony G. Basile <blueness@gentoo.org>2013-08-02 20:46:21 -0400
commita3cd924ecba40190703919285f5e2ef559d32ccd (patch)
tree344f2193c6d74d41bd6d34e828434350c4304d78 /src/libudev/util.h
parenta57c8bba0d0c81cd3f884e173ff56f25b5946cf1 (diff)
src/libudev/{strv,util}.{h,c}: reorder functions
We reorder the functions prototypes and definitions to match upstream as in commit aa417a4d83999f6d7f092161d5c411b8cbce9977. The order was lost when that commit was revert and the functions re-introduced in later commits. Preserving the order helps to better track upstream changes when doing a diff between files. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/libudev/util.h')
-rw-r--r--src/libudev/util.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libudev/util.h b/src/libudev/util.h
index f7058895c0..7b6571ab10 100644
--- a/src/libudev/util.h
+++ b/src/libudev/util.h
@@ -131,6 +131,10 @@ char *strnappend(const char *s, const char *suffix, size_t length);
char *truncate_nl(char *s);
+char hexchar(int x) _const_;
+
+char *xescape(const char *s, const char *bad);
+
bool dirent_is_file_with_suffix(const struct dirent *de, const char *suffix) _pure_;
bool ignore_file(const char *filename) _pure_;
@@ -235,8 +239,6 @@ extern char **saved_argv;
int fd_inc_sndbuf(int fd, size_t n);
-char hexchar(int x);
-
bool in_initrd(void);
static inline void freep(void *p) {
@@ -274,8 +276,6 @@ void *xbsearch_r(const void *key, const void *base, size_t nmemb, size_t size,
int (*compar) (const void *, const void *, void *),
void *arg);
-char *xescape(const char *s, const char *bad);
-
static inline void _reset_errno_(int *saved_errno) {
errno = *saved_errno;
}