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
1bc2faeb
Commit
1bc2faeb
authored
21 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
ODPLAT_NIX is never local. Don't allow .baud to be set to 0.
parent
ace57e28
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/odoors/ODInEx1.c
+16
-0
16 additions, 0 deletions
src/odoors/ODInEx1.c
with
16 additions
and
0 deletions
src/odoors/ODInEx1.c
+
16
−
0
View file @
1bc2faeb
...
...
@@ -648,7 +648,11 @@ read_dorinfox:
od_control
.
port
=
szIFTemp
[
3
]
-
'1'
;
/* determine BPS rate of connection */
if
(
fgets
((
char
*
)
apszDropFileInfo
[
0
],
255
,
pfDropFile
)
==
NULL
)
goto
DropFileFail
;
#ifdef ODPLAT_NIX
od_control
.
baud
=
(
od_control
.
port
==
-
1
)
?
1
:
atol
((
char
*
)
apszDropFileInfo
[
0
]);
#else
od_control
.
baud
=
(
od_control
.
port
==
-
1
)
?
0
:
atol
((
char
*
)
apszDropFileInfo
[
0
]);
#endif
if
(
fgets
((
char
*
)
apszDropFileInfo
[
1
],
80
,
pfDropFile
)
==
NULL
)
goto
DropFileFail
;
...
...
@@ -742,7 +746,11 @@ read_dorinfox:
if
(
fgets
(
szIFTemp
,
255
,
pfDropFile
)
==
NULL
)
goto
DropFileFail
;
if
(
strcmp
(
szIFTemp
,
"KB"
)
==
0
)
{
#ifdef ODPLAT_NIX
od_control
.
baud
=
1
;
#else
od_control
.
baud
=
0
;
#endif
}
else
{
...
...
@@ -1070,7 +1078,11 @@ again:
if
(
fgets
(
szIFTemp
,
255
,
pfDropFile
)
==
NULL
)
goto
DropFileFail
;
if
(
od_control
.
port
==-
1
)
{
#ifdef ODPLAT_NIX
od_control
.
baud
=
1L
;
#else
od_control
.
baud
=
0L
;
#endif
}
else
{
...
...
@@ -1322,7 +1334,11 @@ finished:
/* Read line 3: Baud rate */
if
(
fgets
((
char
*
)
apszDropFileInfo
[
0
],
255
,
pfDropFile
)
==
NULL
)
goto
DropFileFail
;
#ifdef ODPLAT_NIX
od_control
.
baud
=
(
od_control
.
port
==
-
1
)
?
1
:
atol
((
char
*
)
apszDropFileInfo
[
0
]);
#else
od_control
.
baud
=
(
od_control
.
port
==
-
1
)
?
0
:
atol
((
char
*
)
apszDropFileInfo
[
0
]);
#endif
/* Read line 4: BBS Software name and version - unused. */
if
(
fgets
(
szIFTemp
,
255
,
pfDropFile
)
==
NULL
)
goto
DropFileFail
;
...
...
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