Commit a77d39cf authored by Niels Möller's avatar Niels Möller
Browse files

Cosmetic changes.

Rev: src/format.h:1.45.2.5
parent 1bd2acfe
...@@ -92,25 +92,23 @@ ssh_format(const char *format, ...); ...@@ -92,25 +92,23 @@ ssh_format(const char *format, ...);
#endif /* !DEBUG_ALLOC */ #endif /* !DEBUG_ALLOC */
uint32_t ssh_format_length(const char *format, ...); uint32_t ssh_format_length(const char *format, ...);
void ssh_format_write(const char *format, void
ssh_format_write(const char *format,
struct lsh_string *buffer, uint32_t pos, ...); struct lsh_string *buffer, uint32_t pos, ...);
uint32_t ssh_vformat_length(const char *format, va_list args); uint32_t
void ssh_vformat_write(const char *format, ssh_vformat_length(const char *format, va_list args);
struct lsh_string *buffer, uint32_t pos, va_list args);
void void
format_hex_string(struct lsh_string *buffer, uint32_t pos, ssh_vformat_write(const char *format,
uint32_t length, const uint8_t *data); struct lsh_string *buffer, uint32_t pos, va_list args);
/* Short cuts */ /* Short cut */
#define make_string(s) (ssh_format("%lz", (s))) #define make_string(s) (ssh_format("%lz", (s)))
unsigned format_size_in_decimal(uint32_t n); unsigned
void format_size_in_decimal(uint32_t n);
format_decimal(struct lsh_string *buffer, uint32_t pos,
uint32_t length, uint32_t n);
/* Helper functions for formatting particular ssh messages */ /* Helper functions for formatting particular ssh messages */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment