Module Name: src Committed By: christos Date: Sun Jan 24 16:45:58 UTC 2010
Modified Files: src/crypto/dist/heimdal/lib/roken: get_window_size.c src/include/heimdal: roken.h Log Message: make the window size function return the lines and columns variables separately instead of depending on the existance of struct winsize. Technically I should bump the library version or version the symbol, but nothing seems to use this outside the library! To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/crypto/dist/heimdal/lib/roken/get_window_size.c cvs rdiff -u -r1.12 -r1.13 src/include/heimdal/roken.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/crypto/dist/heimdal/lib/roken/get_window_size.c diff -u src/crypto/dist/heimdal/lib/roken/get_window_size.c:1.6 src/crypto/dist/heimdal/lib/roken/get_window_size.c:1.7 --- src/crypto/dist/heimdal/lib/roken/get_window_size.c:1.6 Sun Jan 24 11:42:12 2010 +++ src/crypto/dist/heimdal/lib/roken/get_window_size.c Sun Jan 24 11:45:57 2010 @@ -34,7 +34,7 @@ #ifdef HAVE_CONFIG_H #include <config.h> __RCSID("$Heimdal: get_window_size.c 21005 2007-06-08 01:54:35Z lha $" - "$NetBSD: get_window_size.c,v 1.6 2010/01/24 16:42:12 christos Exp $"); + "$NetBSD: get_window_size.c,v 1.7 2010/01/24 16:45:57 christos Exp $"); #endif #include <stdlib.h> @@ -105,7 +105,7 @@ } #endif if (columns) { - ` if ((s = getenv("COLUMNS"))) + if ((s = getenv("COLUMNS"))) *columns = atoi(s); else return -1; Index: src/include/heimdal/roken.h diff -u src/include/heimdal/roken.h:1.12 src/include/heimdal/roken.h:1.13 --- src/include/heimdal/roken.h:1.12 Sat Mar 22 04:37:24 2008 +++ src/include/heimdal/roken.h Sun Jan 24 11:45:57 2010 @@ -38,7 +38,7 @@ * SUCH DAMAGE. */ -/* $Id: roken.h,v 1.12 2008/03/22 08:37:24 mlelstv Exp $ */ +/* $Id: roken.h,v 1.13 2010/01/24 16:45:57 christos Exp $ */ #include <stdio.h> #include <stdlib.h> @@ -169,7 +169,7 @@ int ROKEN_LIB_FUNCTION issuid(void); -int ROKEN_LIB_FUNCTION get_window_size(int fd, struct winsize *); +int ROKEN_LIB_FUNCTION get_window_size(int fd, int *, int *);