summaryrefslogtreecommitdiff
path: root/src/switchroot/ostree-mount-util.h
diff options
context:
space:
mode:
authorWilliam Manley <will@williammanley.net>2016-08-30 22:36:20 +0100
committerAtomic Bot <atomic-devel@projectatomic.io>2016-08-30 22:41:27 +0000
commita128abd9bcf9842ae7cd61ef951b5345573c3df6 (patch)
tree8962d85d785a94bcabffe0dfdde6af75ca4f8a21 /src/switchroot/ostree-mount-util.h
parent42dab85728385eaf538b36ed56e9db7ff3f96faa (diff)
downloadostree-a128abd9bcf9842ae7cd61ef951b5345573c3df6.tar.gz
switchroot: Replace custom error printing with err/warn functions from libc
The `warn()` libc extension has exactly the same behaviour as our own `perrorv` function, but is available in (at least) glibc and musl. As an added bonus the similar function `err()` which will exit with an error code afterwards. This implementation is tidier and allows us to get rid of our own `perrorv`. It paves the way to removing `ostree-mount-util.c` to simplify the build scripts. Original idea by @cgwalters in #477. Closes: #478 Approved by: cgwalters
Diffstat (limited to 'src/switchroot/ostree-mount-util.h')
-rw-r--r--src/switchroot/ostree-mount-util.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/switchroot/ostree-mount-util.h b/src/switchroot/ostree-mount-util.h
index 475b2cab..eb233d2f 100644
--- a/src/switchroot/ostree-mount-util.h
+++ b/src/switchroot/ostree-mount-util.h
@@ -21,6 +21,4 @@
#pragma once
-int perrorv (const char *format, ...) __attribute__ ((format (printf, 1, 2)));
-
int path_is_on_readonly_fs (char *path);