From b777cd7570d38c138ba99fc044fe55dc9a44b3aa Mon Sep 17 00:00:00 2001 From: mquinson Date: Mon, 27 Jun 2005 22:30:05 +0000 Subject: [PATCH 1/1] Kill defaultlog git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1440 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- examples/gras/chrono/chrono.c | 2 +- examples/gras/chrono/chrono2.c | 2 +- examples/gras/ping/ping.c | 4 ++-- examples/gras/timer/timer.c | 2 +- examples/gras/tokenS/tokenS.c | 3 +-- include/xbt/module.h | 1 - src/xbt_modinter.h | 2 +- 7 files changed, 7 insertions(+), 9 deletions(-) diff --git a/examples/gras/chrono/chrono.c b/examples/gras/chrono/chrono.c index 0c889c8930..74c3c341e9 100644 --- a/examples/gras/chrono/chrono.c +++ b/examples/gras/chrono/chrono.c @@ -24,7 +24,7 @@ int multiplier (int argc,char *argv[]) double start = 0.0; double now = 0.0; - gras_init(&argc, argv, NULL); + gras_init(&argc, argv); A = malloc(n*n*sizeof(double)); B = malloc(n*n*sizeof(double)); diff --git a/examples/gras/chrono/chrono2.c b/examples/gras/chrono/chrono2.c index 147fb4e041..329a987475 100644 --- a/examples/gras/chrono/chrono2.c +++ b/examples/gras/chrono/chrono2.c @@ -67,7 +67,7 @@ static int mat_mult(int n) int multiplier (int argc,char *argv[]) { - gras_init(&argc, argv, NULL); + gras_init(&argc, argv); mat_mult(10); mat_mult(20); diff --git a/examples/gras/ping/ping.c b/examples/gras/ping/ping.c index d16269f2e9..eb98466c09 100644 --- a/examples/gras/ping/ping.c +++ b/examples/gras/ping/ping.c @@ -80,7 +80,7 @@ int server (int argc,char *argv[]) { int port = 4000; /* 1. Init the GRAS infrastructure and declare my globals */ - gras_init(&argc,argv, NULL); + gras_init(&argc,argv); globals=gras_userdata_new(server_data_t); /* 2. Get the port I should listen on from the command line, if specified */ @@ -143,7 +143,7 @@ int client(int argc,char *argv[]) { int port = 4000; /* 1. Init the GRAS's infrastructure */ - gras_init(&argc, argv, NULL); + gras_init(&argc, argv); /* 2. Get the server's address. The command line override defaults when specified */ if (argc == 3) { diff --git a/examples/gras/timer/timer.c b/examples/gras/timer/timer.c index 5aeb4eccb2..8de543f6fa 100644 --- a/examples/gras/timer/timer.c +++ b/examples/gras/timer/timer.c @@ -55,7 +55,7 @@ int client(int argc,char *argv[]) { int cpt; my_globals *globals; - gras_init(&argc,argv,NULL); + gras_init(&argc,argv); globals=gras_userdata_new(my_globals); globals->still_to_do = -1; diff --git a/examples/gras/tokenS/tokenS.c b/examples/gras/tokenS/tokenS.c index 69b632781e..8cf9cf1f8f 100644 --- a/examples/gras/tokenS/tokenS.c +++ b/examples/gras/tokenS/tokenS.c @@ -112,7 +112,7 @@ int node (int argc,char *argv[]) { /* 1. Init the GRAS infrastructure and declare my globals */ - gras_init(&argc,argv, NULL); + gras_init(&argc,argv); globals=gras_userdata_new(node_data_t); @@ -209,6 +209,5 @@ int node (int argc,char *argv[]) { free(globals); gras_exit(); - INFO0("Done"); return no_error; } /* end_of_node */ diff --git a/include/xbt/module.h b/include/xbt/module.h index 7b813a50b7..bc49ea42ea 100644 --- a/include/xbt/module.h +++ b/include/xbt/module.h @@ -16,6 +16,5 @@ typedef xbt_module_t (*xbt_module_new_fct_t)(int argc, char **argv); typedef int (*xbt_module_finalize_fct_t)(void); void xbt_init(int *argc,char **argv); -void xbt_init_defaultlog(int *argc,char **argv, const char *defaultlog); void xbt_exit(void); #endif /* _XBT_MODULE_H */ diff --git a/src/xbt_modinter.h b/src/xbt_modinter.h index d6787730f1..be507036f5 100644 --- a/src/xbt_modinter.h +++ b/src/xbt_modinter.h @@ -11,7 +11,7 @@ #define XBT_MODINTER_H /* Modules definitions */ -void xbt_log_init(int *argc,char **argv, const char *defaultlog); +void xbt_log_init(int *argc,char **argv); void xbt_log_exit(void); #endif /* XBT_MODINTER_H */ -- 2.20.1