diff options
author | yokota <yokota@FreeBSD.org> | 1999-07-07 13:48:50 +0000 |
---|---|---|
committer | yokota <yokota@FreeBSD.org> | 1999-07-07 13:48:50 +0000 |
commit | dde3bd678dd648c47f2136b10cbf07f754e3be4c (patch) | |
tree | b2eb9e67839a34f3c1138f9f2f6dce5ffb8f8e4d /sys/dev/syscons/syscons.h | |
parent | de9b240dd7c3c1a682e04673eb1c25d2ef8c4cc5 (diff) | |
download | FreeBSD-src-dde3bd678dd648c47f2136b10cbf07f754e3be4c.zip FreeBSD-src-dde3bd678dd648c47f2136b10cbf07f754e3be4c.tar.gz |
- Fixed memory leak in sc_alloc_history_buffer().
- Correctly observe the variable `extra_history_size' when changing
the size of history (scroll back) buffer.
- Added sc_free_history_buffer().
Pointed out by: des
Diffstat (limited to 'sys/dev/syscons/syscons.h')
-rw-r--r-- | sys/dev/syscons/syscons.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/syscons/syscons.h b/sys/dev/syscons/syscons.h index d7f3d19..d72c622 100644 --- a/sys/dev/syscons/syscons.h +++ b/sys/dev/syscons/syscons.h @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.h,v 1.48 1999/06/22 14:13:32 yokota Exp $ + * $Id: syscons.h,v 1.49 1999/06/24 13:04:33 yokota Exp $ */ #ifndef _DEV_SYSCONS_SYSCONS_H_ @@ -430,7 +430,9 @@ void sc_paste(scr_stat *scp, u_char *p, int count); /* schistory.c */ #ifndef SC_NO_HISTORY -int sc_alloc_history_buffer(scr_stat *scp, int lines, int wait); +int sc_alloc_history_buffer(scr_stat *scp, int lines, + int prev_ysize, int wait); +void sc_free_history_buffer(scr_stat *scp, int prev_ysize); void sc_hist_save(scr_stat *scp); #define sc_hist_save_one_line(scp, from) \ sc_vtb_append(&(scp)->vtb, (from), (scp)->history, (scp)->xsize) |