summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/window
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2013-07-01 13:44:15 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2013-07-01 13:44:15 +0000
commitbe7181525a93d0b7499364115803130a18c1939d (patch)
tree223cad58108f466ee075c7aed65a88691f03d1f0 /Build/source/texk/web2c/window
parent3d887290087ac01c8dddf9422088e5e2a26798da (diff)
Eliminate use of BSD string functions (bcopy etc)
git-svn-id: svn://tug.org/texlive/trunk@31058 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/window')
-rw-r--r--Build/source/texk/web2c/window/ChangeLog5
-rw-r--r--Build/source/texk/web2c/window/tek.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/window/ChangeLog b/Build/source/texk/web2c/window/ChangeLog
index d1e41767ca3..24a0e26ab2b 100644
--- a/Build/source/texk/web2c/window/ChangeLog
+++ b/Build/source/texk/web2c/window/ChangeLog
@@ -1,3 +1,8 @@
+2013-07-01 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * tek.c: Replace bzero(t, l) => memset(t, 0, l) and bcmp() =>
+ memcmp().
+
2012-11-20 Peter Breitenlohner <peb@mppmu.mpg.de>
* Makefile.am: Avoid use of deprecated INCLUDES.
diff --git a/Build/source/texk/web2c/window/tek.c b/Build/source/texk/web2c/window/tek.c
index 077184e7253..86b5108784c 100644
--- a/Build/source/texk/web2c/window/tek.c
+++ b/Build/source/texk/web2c/window/tek.c
@@ -38,7 +38,7 @@ char zero_array[WIDTHINBYTES];
int
mf_tektronix_initscreen(void)
{
- bzero(zero_array, sizeof(zero_array));
+ memset(zero_array, 0, sizeof(zero_array));
return 1;
}
@@ -55,7 +55,7 @@ mf_tektronix_updatescreen(void)
printf("%c%c", ESCAPE, FORMFEED);
for (r = 0; r < HEIGHT; r++) {
makingline = FALSE;
- if (bcmp(&screen_pixel[r*WIDTHINBYTES],zero_array,WIDTHINBYTES) == 0)
+ if (memcmp(&screen_pixel[r*WIDTHINBYTES],zero_array,WIDTHINBYTES) == 0)
continue;
for (c = 0; c < WIDTH; c++) {
if (ISSET(r, c)) {
@@ -105,7 +105,7 @@ mf_tektronix_blankrectangle (screencol left,
int r, c;
if (left == 0 && right == WIDTH && top == 0 && bottom == HEIGHT)
- bzero(screen_pixel, sizeof(screen_pixel));
+ memset(screen_pixel, 0, sizeof(screen_pixel));
else
for (r = top; r < bottom; r++)
for (c = left; c < right; c++)