diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libnpass/gpg.h | 3 | ||||
-rw-r--r-- | include/libnpass/libnpass.h | 8 | ||||
-rw-r--r-- | include/util.h | 11 |
3 files changed, 12 insertions, 10 deletions
diff --git a/include/libnpass/gpg.h b/include/libnpass/gpg.h index f5053bf..752a0a7 100644 --- a/include/libnpass/gpg.h +++ b/include/libnpass/gpg.h @@ -1,6 +1,7 @@ -#include <stdio.h> #include <sys/types.h> +#include <stdio.h> + int gpg_key_validate(const char *fpr); int gpg_decrypt(FILE *pass_out, const char *pass_path); int gpg_encrypt(FILE *stream, const char *fpr, const char *pass, size_t n); diff --git a/include/libnpass/libnpass.h b/include/libnpass/libnpass.h index f1e3d74..d82de9c 100644 --- a/include/libnpass/libnpass.h +++ b/include/libnpass/libnpass.h @@ -1,8 +1,8 @@ -#include <stdio.h> #include <dirent.h> #include <linux/limits.h> +#include <stdio.h> -#define PASS_DEF_LEN 32 +#define PASS_DEF_LEN 32 typedef enum { PASS_GEN_DIGIT = 0, @@ -17,8 +17,8 @@ typedef enum { } pass_store_t; struct store { - char name[NAME_MAX]; - pass_store_t type; + char name[NAME_MAX]; + pass_store_t type; }; DIR *openstore(const char *spath); diff --git a/include/util.h b/include/util.h index 8d735bb..9c650e1 100644 --- a/include/util.h +++ b/include/util.h @@ -1,7 +1,8 @@ #include <stdio.h> -#define err_ret(r, fmt, ...) do { \ - fprintf(stderr, "[%s:%d] " fmt "\n", \ - __FILE__, __LINE__, ##__VA_ARGS__); \ - return r; \ -} while (0) +#define err_ret(r, fmt, ...) \ + do { \ + fprintf(stderr, "[%s:%d] " fmt "\n", __FILE__, __LINE__, \ + ##__VA_ARGS__); \ + return r; \ + } while (0) |