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 153d11375..d8759ab10 100644
--- a/misc.h
+++ b/misc.h
@@ -163,6 +163,8 @@ char *read_passphrase(const char *, int);
163int ask_permission(const char *, ...) __attribute__((format(printf, 1, 2))); 163int ask_permission(const char *, ...) __attribute__((format(printf, 1, 2)));
164int read_keyfile_line(FILE *, const char *, char *, size_t, u_long *); 164int read_keyfile_line(FILE *, const char *, char *, size_t, u_long *);
165 165
166int secure_permissions(struct stat *st, uid_t uid);
167
166#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b)) 168#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
167#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b)) 169#define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
168#define ROUNDUP(x, y) ((((x)+((y)-1))/(y))*(y)) 170#define ROUNDUP(x, y) ((((x)+((y)-1))/(y))*(y))