Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
7612e913
Commit
7612e913
authored
Sep 06, 2002
by
Per Cederqvist
Browse files
(motd_of_lyskom): Now a Text_no, not int.
(main): Use atol, not atoi, when setting motd_of_lyskom.
parent
beaf7aeb
Changes
1
Show whitespace changes
Inline
Side-by-side
src/server/dbck.c
View file @
7612e913
/*
* $Id: dbck.c,v 0.6
7
2002/0
8/10 16:56:14
ceder Exp $
* $Id: dbck.c,v 0.6
8
2002/0
9/06 22:42:42
ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -136,7 +136,7 @@ static long force_output=0; /* Force sync (for conversions) */
int
pers_pres_conf
=
-
1
;
int
conf_pres_conf
=
-
1
;
int
motd_conf
=
-
1
;
int
motd_of_lyskom
=
-
1
;
Text_no
motd_of_lyskom
=
(
Text_no
)
-
1
;
int
kom_news_conf
=
-
1
;
...
...
@@ -1472,7 +1472,7 @@ main (int argc,
break
;
case
OPT_MOTD_OF_KOM
:
motd_of_lyskom
=
ato
i
(
optarg
);
motd_of_lyskom
=
ato
l
(
optarg
);
if
(
motd_of_lyskom
==
0
&&
*
optarg
!=
'0'
)
restart_kom
(
"%s: bad text number %s
\n
"
,
argv
[
0
],
optarg
);
need_rw
=
1
;
...
...
@@ -1606,7 +1606,7 @@ main (int argc,
kom_info
.
kom_news_conf
=
kom_news_conf
;
modifications
++
;
}
if
(
motd_of_lyskom
!=
-
1
)
if
(
motd_of_lyskom
!=
(
Text_no
)
-
1
)
{
kom_info
.
motd_of_lyskom
=
motd_of_lyskom
;
modifications
++
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment