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
33288488
Commit
33288488
authored
18 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bcc32 warnings and errors.
parent
5880fe9d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/ntsvcs.c
+10
-10
10 additions, 10 deletions
src/sbbs3/ntsvcs.c
with
10 additions
and
10 deletions
src/sbbs3/ntsvcs.c
+
10
−
10
View file @
33288488
...
...
@@ -79,8 +79,8 @@ typedef struct {
DWORD
*
options
;
BOOL
*
recycle_now
;
DWORD
*
log_mask
;
void
(
*
thread
)(
void
*
arg
);
void
(
*
terminate
)(
void
);
void
DLLCALL
(
*
thread
)(
void
*
arg
);
void
DLLCALL
(
*
terminate
)(
void
);
void
(
WINAPI
*
ctrl_handler
)(
DWORD
);
HANDLE
log_handle
;
HANDLE
event_handle
;
...
...
@@ -339,7 +339,7 @@ static int svc_lputs(void* p, int level, char* str)
NULL
,
/* no user security identifier */
1
,
/* one string */
0
,
/* no data */
&
str
,
/* pointer to string array */
(
LPCSTR
*
)
&
str
,
/* pointer to string array */
NULL
);
/* pointer to data */
}
...
...
@@ -992,7 +992,7 @@ static void start_service(SC_HANDLE hSCManager, char* name, char* disp_name
printf
(
"Already running
\n
"
);
else
{
/* Start the service */
if
(
StartService
(
hService
,
argc
,
argv
))
if
(
StartService
(
hService
,
argc
,
(
LPCTSTR
*
)
argv
))
{
while
(
QueryServiceStatus
(
hService
,
&
status
)
&&
status
.
dwCurrentState
==
SERVICE_START_PENDING
)
Sleep
(
1000
);
...
...
@@ -1193,12 +1193,12 @@ int main(int argc, char** argv)
SERVICE_TABLE_ENTRY
ServiceDispatchTable
[]
=
{
{
bbs
.
name
,
bbs_start
},
{
ftp
.
name
,
ftp_start
},
{
web
.
name
,
web_start
},
{
mail
.
name
,
mail_start
},
{
services
.
name
,
services_start
},
{
NULL
,
NULL
}
/* Terminator */
{
NTSVC_NAME_BBS
,
bbs_start
},
{
NTSVC_NAME_FTP
,
ftp_start
},
{
NTSVC_NAME_WEB
,
web_start
},
{
NTSVC_NAME_MAIL
,
mail_start
},
{
NTSVC_NAME_SERVICES
,
services_start
},
{
NULL
,
NULL
}
/* Terminator */
};
printf
(
"
\n
Synchronet NT Services Version %s%c %s
\n\n
"
...
...
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