changeset 218:e20fdeee6bdf

Rename some functions for consistency.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 14 Feb 2016 07:53:18 +0200
parents 97c1ab4719cf
children faeeac291a6c
files th_crypto.c th_crypto.h th_ioctx.c th_ioctx.h
diffstat 4 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/th_crypto.c	Sun Feb 14 05:12:44 2016 +0200
+++ b/th_crypto.c	Sun Feb 14 07:53:18 2016 +0200
@@ -242,7 +242,7 @@
 }
 
 
-void th_md5_append_uint8(th_md5state_t *ctx, uint8_t val)
+void th_md5_append_u8(th_md5state_t *ctx, uint8_t val)
 {
     th_md5_append(ctx, &val, 1);
 }
--- a/th_crypto.h	Sun Feb 14 05:12:44 2016 +0200
+++ b/th_crypto.h	Sun Feb 14 07:53:18 2016 +0200
@@ -40,7 +40,7 @@
 void    th_md5_finish(th_md5state_t *ctx, th_md5hash_t digest);
 void    th_md5_print(FILE *, const th_md5hash_t digest);
 
-void    th_md5_append_uint8(th_md5state_t *ctx, uint8_t val);
+void    th_md5_append_u8(th_md5state_t *ctx, uint8_t val);
 
 #define TH_DEFINE_HEADER(xname) \
 void    th_md5_append_ ## xname ## 16 (th_md5state_t *ctx, uint16_t val); \
--- a/th_ioctx.c	Sun Feb 14 05:12:44 2016 +0200
+++ b/th_ioctx.c	Sun Feb 14 07:53:18 2016 +0200
@@ -274,7 +274,7 @@
 }
 
 
-BOOL thfread_byte(th_ioctx *ctx, uint8_t *val)
+BOOL thfread_u8(th_ioctx *ctx, uint8_t *val)
 {
     return (thfread(val, sizeof(uint8_t), 1, ctx) == 1);
 }
@@ -286,7 +286,7 @@
 }
 
 
-BOOL thfwrite_byte(th_ioctx *ctx, const uint8_t val)
+BOOL thfwrite_u8(th_ioctx *ctx, const uint8_t val)
 {
     return (thfwrite(&val, sizeof(uint8_t), 1, ctx) == 1);
 }
--- a/th_ioctx.h	Sun Feb 14 05:12:44 2016 +0200
+++ b/th_ioctx.h	Sun Feb 14 07:53:18 2016 +0200
@@ -110,9 +110,9 @@
 int          thfprintf(th_ioctx *ctx, const char *fmt, ...);
 
 int          thfread_str(th_ioctx *ctx, void *ptr, const size_t len);
-BOOL         thfread_byte(th_ioctx *ctx, uint8_t *);
+BOOL         thfread_u8(th_ioctx *ctx, uint8_t *);
 int          thfwrite_str(th_ioctx *ctx, const void *ptr, const size_t len);
-BOOL         thfwrite_byte(th_ioctx *ctx, const uint8_t);
+BOOL         thfwrite_u8(th_ioctx *ctx, const uint8_t);
 
 
 //