summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc.h b/misc.h
index bcc34f980..869895d3a 100644
--- a/misc.h
+++ b/misc.h
@@ -181,6 +181,8 @@ int opt_match(const char **opts, const char *term);
181char *read_passphrase(const char *, int); 181char *read_passphrase(const char *, int);
182int ask_permission(const char *, ...) __attribute__((format(printf, 1, 2))); 182int ask_permission(const char *, ...) __attribute__((format(printf, 1, 2)));
183 183
184int secure_permissions(struct stat *st, uid_t uid);
185
184#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b)) 186#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
185#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b)) 187#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
186#define ROUNDUP(x, y) ((((x)+((y)-1))/(y))*(y)) 188#define ROUNDUP(x, y) ((((x)+((y)-1))/(y))*(y))