home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Read interface config from one file (which can be set as command line argument)
[plomrogue]
/
src
/
client
/
main.c
diff --git
a/src/client/main.c
b/src/client/main.c
index 51d5606c8ae9316095f9ee6808cbe0188d1f6d8a..473228c70840eb2af513dc51713539f690326d07 100644
(file)
--- a/
src/client/main.c
+++ b/
src/client/main.c
@@
-17,12
+17,16
@@
struct World world;
-int main()
+int main(
int argc, char * argv[]
)
{
char * f_name = "main()";
/* Declare hard-coded paths here. */
world.path_server_in = "server/in";
{
char * f_name = "main()";
/* Declare hard-coded paths here. */
world.path_server_in = "server/in";
+ world.path_interface_conf = "confclient/interface_conf";
+
+ /* Parse command line arguments. */
+ obey_argv(argc, argv);
/* So error exits also go through the client's cleanup() function. */
set_cleanup_func(cleanup);
/* So error exits also go through the client's cleanup() function. */
set_cleanup_func(cleanup);