diff options
author | Felipe Franciosi <felipe@nutanix.com> | 2019-11-02 06:47:37 +0000 |
---|---|---|
committer | Felipe Franciosi <felipe@nutanix.com> | 2019-11-04 11:35:26 +0000 |
commit | dbb941aa23e21788f62ca27b8beaec0571a208bc (patch) | |
tree | c14fdeef6a4121fcceee680ad2358651af7b793c /lib/common.h | |
parent | 697b903e8de8ba7543b25f501a34152af5702775 (diff) | |
download | libvfio-user-dbb941aa23e21788f62ca27b8beaec0571a208bc.zip libvfio-user-dbb941aa23e21788f62ca27b8beaec0571a208bc.tar.gz libvfio-user-dbb941aa23e21788f62ca27b8beaec0571a208bc.tar.bz2 |
Standardise function signatures
This makes all function signatures consistent, using a line break after
the return type. It also review the usage of const across the project
and fixes some other minor alignment issues.
Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
Diffstat (limited to 'lib/common.h')
-rw-r--r-- | lib/common.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/common.h b/lib/common.h index 622ba7c..85ad610 100644 --- a/lib/common.h +++ b/lib/common.h @@ -48,11 +48,12 @@ #define ROUND_DOWN(x, a) ((x) & ~((a)-1)) #define ROUND_UP(x,a) ROUND_DOWN((x)+(a)-1, a) -void lm_log(lm_ctx_t const *const lm_ctx, const lm_log_lvl_t lvl, - char const *const fmt, ...); +void +lm_log(lm_ctx_t *lm_ctx, lm_log_lvl_t lvl, const char *fmt, ...); -void dump_buffer(lm_ctx_t const *const lm_ctx, char const *const prefix, - unsigned char const *const buf, uint32_t count); +void +dump_buffer(lm_ctx_t *lm_ctx, const char *prefix, + const unsigned char *buf, uint32_t count); #endif /* __COMMON_H__ */ |