Revision: 75262
http://sourceforge.net/p/brlcad/code/75262
Author: starseeker
Date: 2020-04-03 16:21:36 +0000 (Fri, 03 Apr 2020)
Log Message:
-----------
write -> bu_log
Modified Paths:
--------------
brlcad/trunk/src/libtermio/termcap.c
Modified: brlcad/trunk/src/libtermio/termcap.c
===================================================================
--- brlcad/trunk/src/libtermio/termcap.c 2020-04-03 14:30:50 UTC (rev
75261)
+++ brlcad/trunk/src/libtermio/termcap.c 2020-04-03 16:21:36 UTC (rev
75262)
@@ -55,6 +55,7 @@
#include <unistd.h>
#include <stdlib.h>
+#include "bu/log.h"
#include "bu/str.h"
/*
@@ -134,7 +135,7 @@
if (*p++ != 't' || *p == 0 || *p++ != 'c')
continue;
if (*p++ != '=') {
- bad: write(2, "Bad termcap entry\n", 18);
+ bad: bu_log("Bad termcap entry\n");
return (0);
}
for (q = tcname; *p && *p != ':'; p++) {
@@ -144,7 +145,7 @@
}
*q = '\0';
if (++hopcount > MAXHOP) {
- write(2, "Infinite tc= loop\n", 18);
+ bu_log("Infinite tc= loop\n");
return (0);
}
if (tgetent(tcbuf, tcname) != 1) {
@@ -158,7 +159,7 @@
;
l = holdtc - holdtbuf + strlen(rmbuf) + strlen(q);
if (l > TCBUFSIZE) {
- write(2, "Termcap entry too long\n", 23);
+ bu_log("Termcap entry too long\n");
break;
}
q++;
@@ -240,7 +241,7 @@
break;
}
if (cp >= bp+TCBUFSIZE) {
- write(2,"Termcap entry too long\n", 23);
+ bu_log("Termcap entry too long\n");
break;
} else
*cp++ = c;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits