forked from j3d1/fiatlux
stash
This commit is contained in:
parent
8b0020c387
commit
ce8b71daf0
6 changed files with 185 additions and 102 deletions
|
|
@ -31,7 +31,7 @@ unsigned syslog_data_after(unsigned local_tail) {
|
|||
return (head % syslog_buffer_size) - (local_tail % syslog_buffer_size);
|
||||
}
|
||||
|
||||
extern "C" int syslog_copy_out(char *out, int len, unsigned local_tail) {
|
||||
extern "C" int syslog_copy_out(char *out, unsigned len, unsigned local_tail) {
|
||||
unsigned cnt = 0;
|
||||
while (cnt < syslog_data_after(local_tail) && cnt < len) {
|
||||
out[cnt] = syslog_buf[local_tail % syslog_buffer_size + cnt];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue