chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util: add files_same() helper function
[elogind.git]
/
src
/
shared
/
util.h
diff --git
a/src/shared/util.h
b/src/shared/util.h
index c2bc9771b9f424c4bc5f6d5eb3725cfd184975aa..11d28665b6ba5144d5b81fae22124ace9e1ceda5 100644
(file)
--- a/
src/shared/util.h
+++ b/
src/shared/util.h
@@
-451,6
+451,8
@@
static inline const char *ansi_highlight_off(void) {
return on_tty() ? ANSI_HIGHLIGHT_OFF : "";
}
+int files_same(const char *filea, const char *fileb);
+
int running_in_chroot(void);
char *ellipsize(const char *s, size_t length, unsigned percent);