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
14bc0877
Commit
14bc0877
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Eliminate warnings exposed by gcc -O.
parent
3c90e9f7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/sbbs3/services.c
+2
-0
2 additions, 0 deletions
src/sbbs3/services.c
src/sbbs3/userdat.c
+1
-1
1 addition, 1 deletion
src/sbbs3/userdat.c
src/sbbs3/writemsg.cpp
+17
-8
17 additions, 8 deletions
src/sbbs3/writemsg.cpp
src/sbbs3/xtrn.cpp
+4
-8
4 additions, 8 deletions
src/sbbs3/xtrn.cpp
with
24 additions
and
17 deletions
src/sbbs3/services.c
+
2
−
0
View file @
14bc0877
...
...
@@ -1546,6 +1546,8 @@ void DLLCALL services_thread(void* arg)
client_addr_len
=
sizeof
(
client_addr
);
udp_len
=
0
;
if
(
service
[
i
].
options
&
SERVICE_OPT_UDP
)
{
/* UDP */
if
((
udp_buf
=
(
BYTE
*
)
calloc
(
1
,
MAX_UDP_BUF_LEN
))
==
NULL
)
{
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/userdat.c
+
1
−
1
View file @
14bc0877
...
...
@@ -610,7 +610,7 @@ char DLLCALL getage(scfg_t* cfg, char *birth)
int
DLLCALL
getnodedat
(
scfg_t
*
cfg
,
uint
number
,
node_t
*
node
,
int
*
fp
)
{
char
str
[
MAX_PATH
+
1
];
int
count
;
int
count
=
0
;
int
file
;
if
(
!
number
||
number
>
cfg
->
sys_nodes
)
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/writemsg.cpp
+
17
−
8
View file @
14bc0877
...
...
@@ -543,7 +543,7 @@ ulong sbbs_t::msgeditor(char *buf, char *top, char *title)
if
((
str
[
lines
]
=
(
char
*
)
MALLOC
(
MAX_LINE_LEN
))
==
NULL
)
{
errormsg
(
WHERE
,
ERR_ALLOC
,
nulstr
,
MAX_LINE_LEN
);
for
(
i
=
0
;
i
<
lines
;
i
++
)
FREE
(
str
[
lines
]);
FREE
(
str
[
i
]);
FREE
(
str
);
if
(
online
==
ON_REMOTE
)
rioctl
(
IOSM
|
ABORT
);
...
...
@@ -561,14 +561,17 @@ ulong sbbs_t::msgeditor(char *buf, char *top, char *title)
/***
bprintf("\r\nMessage editor: Expanded tab on line #%d",lines+1);
***/
}
else
str
[
lines
][
i
]
=
buf
[
l
];
}
else
str
[
lines
][
i
]
=
buf
[
l
];
}
if
(
i
==
79
)
{
if
(
buf
[
l
]
==
CR
)
l
+=
2
;
else
bprintf
(
"
\r\n
Message editor: Split line #%d"
,
lines
+
1
);
}
bprintf
(
"
\r\n
Message editor: Split line #%d"
,
lines
+
1
);
}
str
[
lines
][
i
]
=
0
;
lines
++
;
}
lines
++
;
}
if
(
lines
)
bprintf
(
"
\r\n
Message editor: Read in %d lines
\r\n
"
,
lines
);
bprintf
(
text
[
EnterMsgNow
],
maxlines
);
...
...
@@ -577,10 +580,12 @@ ulong sbbs_t::msgeditor(char *buf, char *top, char *title)
if
(
fexist
(
path
))
menu
(
"msgtabs"
);
else
{
for
(
i
=
0
;
i
<
79
;
i
++
)
for
(
i
=
0
;
i
<
79
;
i
++
)
{
if
(
i
%
TABSIZE
||
!
i
)
outchar
(
'-'
);
else
outchar
(
'+'
);
else
outchar
(
'+'
);
}
CRLF
;
}
putmsg
(
top
,
P_SAVEATR
|
P_NOATCODES
);
...
...
@@ -702,6 +707,8 @@ ulong sbbs_t::msgeditor(char *buf, char *top, char *title)
FREE
(
str
[
line
]);
if
(
lines
)
i
=!
noyes
(
text
[
WithLineNumbersQ
]);
else
i
=
0
;
CRLF
;
attr
(
LIGHTGRAY
);
putmsg
(
top
,
P_SAVEATR
|
P_NOATCODES
);
...
...
@@ -763,12 +770,14 @@ ulong sbbs_t::msgeditor(char *buf, char *top, char *title)
for
(
i
=
0
;
i
<
lines
;
i
++
)
FREE
(
str
[
i
]);
FREE
(
str
);
return
(
0
);
}
return
(
0
);
}
strcpy
(
buf
,
top
);
for
(
i
=
0
;
i
<
lines
;
i
++
)
{
strcat
(
buf
,
str
[
i
]);
strcat
(
buf
,
crlf
);
FREE
(
str
[
i
]);
}
FREE
(
str
[
i
]);
}
FREE
(
str
);
return
(
lines
);
}
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/xtrn.cpp
+
4
−
8
View file @
14bc0877
...
...
@@ -253,7 +253,7 @@ int sbbs_t::external(const char* cmdline, long mode, const char* startup_dir)
bool
native
=
false
;
// DOS program by default
bool
nt
=
false
;
// WinNT/2K?
bool
was_online
=
true
;
bool
rio_abortable_save
;
bool
rio_abortable_save
=
rio_abortable
;
bool
use_pipes
=
false
;
// NT-compatible console redirection
uint
i
;
time_t
hungup
=
0
;
...
...
@@ -629,10 +629,8 @@ int sbbs_t::external(const char* cmdline, long mode, const char* startup_dir)
ReleaseMutex
(
exec_mutex
);
/* Disable Ctrl-C checking */
if
(
!
(
mode
&
EX_OFFLINE
))
{
rio_abortable_save
=
rio_abortable
;
if
(
!
(
mode
&
EX_OFFLINE
))
rio_abortable
=
false
;
}
// Executing app in foreground?, monitor
retval
=
STILL_ACTIVE
;
...
...
@@ -1069,7 +1067,7 @@ int sbbs_t::external(const char* cmdline, long mode, const char* startup_dir)
ulong
avail
;
ulong
output_len
;
bool
native
=
false
;
// DOS program by default
bool
rio_abortable_save
;
bool
rio_abortable_save
=
rio_abortable
;
int
i
;
int
rd
;
int
wr
;
...
...
@@ -1276,10 +1274,8 @@ int sbbs_t::external(const char* cmdline, long mode, const char* startup_dir)
lprintf
(
"Node %d executing external: %s"
,
cfg
.
node_num
,
fullcmdline
);
/* Disable Ctrl-C checking */
if
(
!
(
mode
&
EX_OFFLINE
))
{
rio_abortable_save
=
rio_abortable
;
if
(
!
(
mode
&
EX_OFFLINE
))
rio_abortable
=
false
;
}
if
(
mode
&
EX_OUTR
)
{
if
(
!
(
mode
&
EX_INR
))
...
...
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