format: satisfy linter

This commit is contained in:
rmntgx
2025-05-17 21:56:27 +00:00
parent 44d7836955
commit 0b02a2cef2
6 changed files with 23 additions and 23 deletions

View File

@@ -6,6 +6,7 @@
#include "config.h"
#include "sessions.h"
bool launch(char *user, char *passwd, struct session session, void (*cb)(void), struct behavior* behavior);
bool launch(char *user, char *passwd, struct session session, void (*cb)(void),
struct behavior *behavior);
#endif

View File

@@ -5,7 +5,7 @@
#include "util.h"
void setup(struct config);
int load(struct Vector * users, struct Vector * sessions);
int load(struct Vector *users, struct Vector *sessions);
void print_err(const char *);
void print_errno(const char *);

View File

@@ -14,18 +14,18 @@ void read_press(u_char *, char *);
void strcln(char **dest, const char *source);
struct Vector {
uint32_t length;
uint32_t alloc_len;
uint16_t alloc_size;
void** pages;
uint32_t length;
uint32_t alloc_len;
uint16_t alloc_size;
void **pages;
};
struct Vector vec_new();
int vec_push(struct Vector*, void* item);
void vec_free(struct Vector*);
void vec_clear(struct Vector*);
void vec_reset(struct Vector*);
void* vec_pop(struct Vector*); // won't free it, nor shrink vec list space
void* vec_get(struct Vector*, size_t index);
int vec_push(struct Vector *, void *item);
void vec_free(struct Vector *);
void vec_clear(struct Vector *);
void vec_reset(struct Vector *);
void *vec_pop(struct Vector *); // won't free it, nor shrink vec list space
void *vec_get(struct Vector *, size_t index);
#endif