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
0eee85fc
Commit
0eee85fc
authored
3 months ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Accommodate the link_list API change (long -> int)
parent
a147f9ee
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sbbs3/mqtt.c
+3
-3
3 additions, 3 deletions
src/sbbs3/mqtt.c
src/sbbs3/sbbscon.c
+1
-1
1 addition, 1 deletion
src/sbbs3/sbbscon.c
src/sbbs3/sbbsecho.c
+1
-1
1 addition, 1 deletion
src/sbbs3/sbbsecho.c
with
5 additions
and
5 deletions
src/sbbs3/mqtt.c
+
3
−
3
View file @
0eee85fc
...
@@ -694,7 +694,7 @@ int mqtt_server_state(struct mqtt* mqtt, enum server_state state)
...
@@ -694,7 +694,7 @@ int mqtt_server_state(struct mqtt* mqtt, enum server_state state)
snprintf
(
max_clients
,
sizeof
(
max_clients
),
"/%lu"
,
mqtt
->
max_clients
);
snprintf
(
max_clients
,
sizeof
(
max_clients
),
"/%lu"
,
mqtt
->
max_clients
);
char
clients
[
64
]
=
""
;
char
clients
[
64
]
=
""
;
if
(
mqtt
->
client_list
.
count
)
if
(
mqtt
->
client_list
.
count
)
snprintf
(
clients
,
sizeof
(
clients
),
"%
lu
%s clients"
,
mqtt
->
client_list
.
count
,
max_clients
);
snprintf
(
clients
,
sizeof
(
clients
),
"%
d
%s clients"
,
mqtt
->
client_list
.
count
,
max_clients
);
snprintf
(
str
,
sizeof
(
str
),
"%s
\t
%s
\t
%s
\t
%s"
snprintf
(
str
,
sizeof
(
str
),
"%s
\t
%s
\t
%s
\t
%s"
,
server_state_desc
(
state
)
,
server_state_desc
(
state
)
,
clients
,
clients
...
@@ -893,9 +893,9 @@ int mqtt_client_count(struct mqtt* mqtt)
...
@@ -893,9 +893,9 @@ int mqtt_client_count(struct mqtt* mqtt)
if
(
mqtt
->
cfg
->
mqtt
.
verbose
)
if
(
mqtt
->
cfg
->
mqtt
.
verbose
)
mqtt_server_state
(
mqtt
,
mqtt
->
server_state
);
mqtt_server_state
(
mqtt
,
mqtt
->
server_state
);
if
(
mqtt
->
max_clients
)
if
(
mqtt
->
max_clients
)
snprintf
(
str
,
sizeof
(
str
),
"%
l
d total
\t
%ld max"
,
mqtt
->
client_list
.
count
,
mqtt
->
max_clients
);
snprintf
(
str
,
sizeof
(
str
),
"%d total
\t
%ld max"
,
mqtt
->
client_list
.
count
,
mqtt
->
max_clients
);
else
else
snprintf
(
str
,
sizeof
(
str
),
"%
l
d total"
,
mqtt
->
client_list
.
count
);
snprintf
(
str
,
sizeof
(
str
),
"%d total"
,
mqtt
->
client_list
.
count
);
return
mqtt_pub_strval
(
mqtt
,
TOPIC_SERVER
,
"client"
,
str
);
return
mqtt_pub_strval
(
mqtt
,
TOPIC_SERVER
,
"client"
,
str
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/sbbscon.c
+
1
−
1
View file @
0eee85fc
...
@@ -2156,7 +2156,7 @@ int main(int argc, char** argv)
...
@@ -2156,7 +2156,7 @@ int main(int argc, char** argv)
for
(
node
=
client_list
.
first
;
node
!=
NULL
;
node
=
node
->
next
)
{
for
(
node
=
client_list
.
first
;
node
!=
NULL
;
node
=
node
->
next
)
{
client
=
node
->
data
;
client
=
node
->
data
;
localtime32
(
&
client
->
time
,
&
tm
);
localtime32
(
&
client
->
time
,
&
tm
);
printf
(
"%04
l
d %s %s [%s] %s port %u since %u/%u %02u:%02u:%02u
\n
"
printf
(
"%04d %s %s [%s] %s port %u since %u/%u %02u:%02u:%02u
\n
"
,
node
->
tag
,
node
->
tag
,
client
->
protocol
,
client
->
protocol
,
client
->
user
,
client
->
user
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/sbbsecho.c
+
1
−
1
View file @
0eee85fc
...
@@ -5918,7 +5918,7 @@ void find_stray_packets(void)
...
@@ -5918,7 +5918,7 @@ void find_stray_packets(void)
listAddNode
(
&
outpkt_list
,
pkt
,
0
,
LAST_NODE
);
listAddNode
(
&
outpkt_list
,
pkt
,
0
,
LAST_NODE
);
}
}
if
(
g
.
gl_pathc
)
if
(
g
.
gl_pathc
)
lprintf
(
LOG_DEBUG
,
"%
l
u stray outbound packets (%lu total pkts) found in %s"
lprintf
(
LOG_DEBUG
,
"%u stray outbound packets (%lu total pkts) found in %s"
,
listCountNodes
(
&
outpkt_list
),
(
ulong
)
g
.
gl_pathc
,
cfg
.
temp_dir
);
,
listCountNodes
(
&
outpkt_list
),
(
ulong
)
g
.
gl_pathc
,
cfg
.
temp_dir
);
globfree
(
&
g
);
globfree
(
&
g
);
}
}
...
...
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