Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
20c4351a
Commit
20c4351a
authored
4 months ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Resolve recently added compile errors and warnings
to unblock the pipes
parent
f2e46f3d
No related branches found
No related tags found
No related merge requests found
Pipeline
#7225
passed
4 months ago
Stage: build
Stage: test
Stage: cleanup
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/syncterm/modem.c
+6
-6
6 additions, 6 deletions
src/syncterm/modem.c
with
6 additions
and
6 deletions
src/syncterm/modem.c
+
6
−
6
View file @
20c4351a
...
...
@@ -17,7 +17,7 @@
static
COM_HANDLE
com
=
COM_HANDLE_INVALID
;
static
pthread_once_t
ptable_once
=
PTHREAD_ONCE_INIT
;
static
char
ptable
[
128
];
static
nbits
[
16
]
=
{
static
int
nbits
[
16
]
=
{
0
,
1
,
1
,
2
,
1
,
2
,
2
,
3
,
1
,
2
,
2
,
3
,
2
,
3
,
3
,
4
};
static
bool
seven_bits
=
false
;
...
...
@@ -30,7 +30,6 @@ modem_input_thread(void *args)
int
buffered
;
size_t
buffer
;
bool
monitor_dsr
=
true
;
char
pb
;
SetThreadName
(
"Modem Input"
);
conn_api
.
input_thread_running
=
1
;
...
...
@@ -41,7 +40,7 @@ modem_input_thread(void *args)
while
(
com
!=
COM_HANDLE_INVALID
&&
!
conn_api
.
terminate
)
{
rd
=
comReadBuf
(
com
,
(
char
*
)
conn_api
.
rd_buf
,
conn_api
.
rd_buf_size
,
NULL
,
100
);
// Strip high bits... we *should* check the parity
if
(
seven
)
{
if
(
seven
_bits
)
{
for
(
int
i
=
0
;
i
<
rd
;
i
++
)
conn_api
.
rd_buf
[
i
]
&=
0x7f
;
}
...
...
@@ -69,6 +68,7 @@ modem_input_thread(void *args)
void
modem_output_thread
(
void
*
args
)
{
int
i
;
int
wr
;
int
ret
;
int
sent
;
...
...
@@ -86,7 +86,7 @@ modem_output_thread(void *args)
if
(
wr
)
{
wr
=
conn_buf_get
(
&
conn_outbuf
,
conn_api
.
wr_buf
,
conn_api
.
wr_buf_size
);
pthread_mutex_unlock
(
&
(
conn_outbuf
.
mutex
));
if
(
seven
)
{
if
(
seven
_bits
)
{
for
(
i
=
0
;
i
<
wr
;
i
++
)
conn_api
.
wr_buf
[
i
]
&=
0x7f
;
switch
(
parity
)
{
...
...
@@ -184,7 +184,7 @@ modem_connect(struct bbslist *bbs)
pthread_once
(
&
ptable_once
,
init_ptable
);
parity
=
bbs
->
parity
;
seven
=
(
bbs
->
data_bits
==
7
);
seven
_bits
=
(
bbs
->
data_bits
==
7
);
if
(
!
bbs
->
hidepopups
)
init_uifc
(
true
,
true
);
...
...
@@ -299,7 +299,7 @@ modem_connect(struct bbslist *bbs)
getch
();
/* Drain modem output buffer */
while
(
comReadByte
(
com
,
respbuf
))
while
(
comReadByte
(
com
,
(
uchar
*
)
respbuf
))
;
if
(
!
bbs
->
hidepopups
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment