Added missing returns (forgot to commit this...).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10674 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
** Copyright 2004, Axel Dörfler, [email protected]. All rights reserved.
|
||||
** Distributed under the terms of the Haiku License.
|
||||
*/
|
||||
/*
|
||||
* Copyright 2004, Axel Dörfler, [email protected]. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
|
||||
#include "line_buffer.h"
|
||||
@@ -15,6 +15,7 @@ clear_line_buffer(struct line_buffer &buffer)
|
||||
{
|
||||
buffer.in = 0;
|
||||
buffer.first = 0;
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -98,6 +99,7 @@ line_buffer_putc(struct line_buffer &buffer, char c)
|
||||
return B_NO_MEMORY;
|
||||
|
||||
buffer.buffer[(buffer.first + buffer.in++) % buffer.size] = c;
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user