Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src make the window size function return the lines and columns v...



details:   https://anonhg.NetBSD.org/src/rev/24cae6011967
branches:  trunk
changeset: 751096:24cae6011967
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 24 16:45:57 2010 +0000

description:
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!

diffstat:

 crypto/dist/heimdal/lib/roken/get_window_size.c |  4 ++--
 include/heimdal/roken.h                         |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (42 lines):

diff -r 58999d24cc41 -r 24cae6011967 crypto/dist/heimdal/lib/roken/get_window_size.c
--- a/crypto/dist/heimdal/lib/roken/get_window_size.c   Sun Jan 24 16:42:12 2010 +0000
+++ b/crypto/dist/heimdal/lib/roken/get_window_size.c   Sun Jan 24 16:45:57 2010 +0000
@@ -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;
diff -r 58999d24cc41 -r 24cae6011967 include/heimdal/roken.h
--- a/include/heimdal/roken.h   Sun Jan 24 16:42:12 2010 +0000
+++ b/include/heimdal/roken.h   Sun Jan 24 16:45:57 2010 +0000
@@ -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 *);
 
 
 



Home | Main Index | Thread Index | Old Index