summaryrefslogtreecommitdiff
path: root/app/xterm/resize.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-09-05 15:58:10 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-09-05 15:58:10 +0000
commit0bfe30f1f8426d3e7c82459bca752530d6a1e469 (patch)
tree2e494b4882bc80ad74f39181476d95b64a340dfa /app/xterm/resize.c
parent7e6bbbf222239c48377c748a99a9996f66fe68ac (diff)
update to xterm 246. Has been in snapshots for some time.
Diffstat (limited to 'app/xterm/resize.c')
-rw-r--r--app/xterm/resize.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/app/xterm/resize.c b/app/xterm/resize.c
index 7fb91804e..393195f71 100644
--- a/app/xterm/resize.c
+++ b/app/xterm/resize.c
@@ -1,7 +1,7 @@
-/* $XTermId: resize.c,v 1.107 2008/12/30 17:07:56 tom Exp $ */
+/* $XTermId: resize.c,v 1.108 2009/05/31 14:00:16 tom Exp $ */
/*
- * Copyright 2003-2007,2008 by Thomas E. Dickey
+ * Copyright 2003-2008,2009 by Thomas E. Dickey
*
* All Rights Reserved
*
@@ -92,10 +92,6 @@ extern struct passwd *getpwuid(); /* does ANYBODY need this? */
#endif /* SYSV && i386 */
#endif /* X_NOT_POSIX */
-#ifndef bzero
-#define bzero(s, n) memset(s, 0, n)
-#endif
-
#ifdef __MVS__
#define ESCAPE(string) "\047" string
#else
@@ -523,7 +519,7 @@ readstring(FILE *fp, char *buf, char *str)
#if defined(USG) || defined(__UNIXOS2__)
alarm(TIMEOUT);
#else
- bzero((char *) &it, sizeof(struct itimerval));
+ memset((char *) &it, 0, sizeof(struct itimerval));
it.it_value.tv_sec = TIMEOUT;
setitimer(ITIMER_REAL, &it, (struct itimerval *) NULL);
#endif
@@ -545,7 +541,7 @@ readstring(FILE *fp, char *buf, char *str)
#if defined(USG) || defined(__UNIXOS2__)
alarm(0);
#else
- bzero((char *) &it, sizeof(struct itimerval));
+ memset((char *) &it, 0, sizeof(struct itimerval));
setitimer(ITIMER_REAL, &it, (struct itimerval *) NULL);
#endif
*buf = 0;