chiark
/
gitweb
/
~ian
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
buffers: Rename buffer_if.len to buffer_if.alloclen.
[secnet.git]
/
secnet.h
diff --git
a/secnet.h
b/secnet.h
index 44b180f043d04baa27ac6cc8155f13cbc69067e6..194341c434670902e772b58a956fbfbe6fd4b050 100644
(file)
--- a/
secnet.h
+++ b/
secnet.h
@@
-344,6
+344,11
@@
struct comm_if {
comm_addr_to_string_fn *addr_to_string;
};
comm_addr_to_string_fn *addr_to_string;
};
+static inline const char *comm_addr_to_string(const struct comm_addr *ca)
+{
+ return ca->comm->addr_to_string(ca->comm->st, ca);
+}
+
/* LOG interface */
#define LOG_MESSAGE_BUFLEN 1023
/* LOG interface */
#define LOG_MESSAGE_BUFLEN 1023
@@
-494,7
+499,7
@@
struct buffer_if {
uint8_t *base;
uint8_t *start;
int32_t size; /* Size of buffer contents */
uint8_t *base;
uint8_t *start;
int32_t size; /* Size of buffer contents */
- int32_t len; /* Total length allocated at base */
+ int32_t
alloc
len; /* Total length allocated at base */
};
/***** LOG functions *****/
};
/***** LOG functions *****/