Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lyskom-server-ceder-1616-generations-topgit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
b597abe6
Commit
b597abe6
authored
31 years ago
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
(DEFAULT_PREFIX): Expect that macro to be set when the file is compiled.
parent
fb253938
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/server/server-config.c
+10
-10
10 additions, 10 deletions
src/server/server-config.c
with
10 additions
and
10 deletions
src/server/server-config.c
+
10
−
10
View file @
b597abe6
/*
* $Id: server-config.c,v 0.2
6
1994/0
2/27 17:05:25
ceder Exp $
* $Id: server-config.c,v 0.2
7
1994/0
3/05 17:29:36
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,9 +28,10 @@
* This is in a .c file to make it possible to change a value without having
* to recompile the entire server (or, in fact, anything!)
*
* Compile with -DDEFAULT_PREFIX='"/usr/lyskom"' or something similar.
*/
static
char
*
rcsid
=
"$Id: server-config.c,v 0.2
6
1994/0
2/27 17:05:25
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: server-config.c,v 0.2
7
1994/0
3/05 17:29:36
ceder Exp $"
;
#include
"rcs.h"
USE
(
rcsid
);
...
...
@@ -52,15 +53,14 @@ USE(rcsid);
#include
"manipulate.h"
#include
"lyskomd.h"
#ifndef DEFAULT_PREFIX
#error DEFAULT_PREFIX should have been defined by the Makefile.
#endif
static
Success
log_param
(
const
char
*
val
,
const
struct
parameter
*
par
);
static
Success
jubel
(
const
char
*
val
,
const
struct
parameter
*
par
);
static
Success
ident_param
(
const
char
*
val
,
const
struct
parameter
*
par
);
/* Default value for DEFAULT_DBASE_DIR. Since this is used in two
places in this file, use a define. */
/* FIXME: This should be set by autoconf. */
#define PREFIX "/usr/lyskom"
/* See lyskomd.8 for more info about the parameters.
Please remember to update lyskomd.8 if you add more parameters!
Try to keep this list and the list in lyskomd.8 in the same order. */
...
...
@@ -69,7 +69,7 @@ static const struct parameter parameters[] = {
{
"Locale"
,
assign_string
,
0
,
1
,
NULL
,
&
param
.
use_locale
},
{
"Prefix"
,
assign_string
,
0
,
1
,
PREFIX
,
&
param
.
dbase_dir
},
assign_string
,
0
,
1
,
DEFAULT_
PREFIX
,
&
param
.
dbase_dir
},
{
"Send async"
,
assign_bool
,
0
,
1
,
"1"
,
&
param
.
send_async_messages
},
{
"Client port"
,
...
...
@@ -200,7 +200,7 @@ static const struct parameter parameters[] = {
* DEFAULT_DBASE_DIR is overriden, of course).
*/
const
char
*
DEFAULT_DBASE_DIR
=
PREFIX
;
const
char
*
DEFAULT_DBASE_DIR
=
DEFAULT_
PREFIX
;
const
char
*
CONFIG_FILE
=
"etc/config"
;
/*
...
...
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