mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 10:06:40 -04:00
- fix build failures in i386 and amd64 due to compiler changes - fix numerous compilation warnings and logical errors that may trap in the future - convert all distribution files from DOS format to ease future changes - convert legacy patch file to new naming convention PR: 214990 Submitted by: bob@eager.cx (maintainer)
29 lines
1.2 KiB
C
29 lines
1.2 KiB
C
--- LGP/lgp_stddev.c.orig 2016-12-01 22:43:42 UTC
|
|
+++ LGP/lgp_stddev.c
|
|
@@ -394,7 +394,7 @@ t_stat ttr_svc (UNIT *uptr)
|
|
{
|
|
t_stat r;
|
|
|
|
-if (r = read_reader (uptr, ttr_stopioe, (int32 *) &tti_buf))
|
|
+if ((r = read_reader (uptr, ttr_stopioe, (int32 *) &tti_buf)))
|
|
return r;
|
|
if (!(uptr->flags & UNIT_NOCS) && /* cstop enable? */
|
|
(tti_buf == FLEX_CSTOP)) /* cond stop? */
|
|
@@ -415,7 +415,7 @@ t_stat ptr_svc (UNIT *uptr)
|
|
{
|
|
t_stat r;
|
|
|
|
-if (r = read_reader (uptr, ptr_stopioe, &uptr->buf))
|
|
+if ((r = read_reader (uptr, ptr_stopioe, &uptr->buf)))
|
|
return r;
|
|
if (uptr->buf == FLEX_CSTOP) /* cond stop? */
|
|
inp_done = 1;
|
|
@@ -548,7 +548,7 @@ else {
|
|
ch = '\b';
|
|
else ch = flex_to_ascii[flex | (tto_uc << 6)]; /* cvt flex to ascii */
|
|
if (ch > 0) { /* legit? */
|
|
- if (r = sim_putchar_s (ch)) /* write char */
|
|
+ if ((r = sim_putchar_s (ch))) /* write char */
|
|
return r;
|
|
tto_unit[0].pos = tto_unit[0].pos + 1;
|
|
if (flex == FLEX_CR) { /* cr? */
|