Commit ddab21e5 authored by Matteo Quintiliani's avatar Matteo Quintiliani

Fixed a bug for calling logit()


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@460 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 8570e6d4
......@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it
*
* $Id: nmxp_log.c,v 1.11 2007-10-01 06:03:45 mtheo Exp $
* $Id: nmxp_log.c,v 1.12 2007-10-25 13:45:36 mtheo Exp $
*
*/
......@@ -46,10 +46,11 @@ int nmxp_log_stderr(char *msg) {
#define NMXP_MAX_FUNC_LOG 10
int n_func_log = 0;
int n_func_log_err = 0;
int (*p_func_log[NMXP_MAX_FUNC_LOG]) (char *);
int (*p_func_log_err[NMXP_MAX_FUNC_LOG]) (char *);
/* private variables */
static int n_func_log = 0;
static int n_func_log_err = 0;
static int (*p_func_log[NMXP_MAX_FUNC_LOG]) (char *);
static int (*p_func_log_err[NMXP_MAX_FUNC_LOG]) (char *);
void nmxp_log_init(int (*func_log)(char *), int (*func_log_err)(char *)) {
......
......@@ -529,12 +529,12 @@ void nmxptool_ew_send_heartbeat_if_needed() {
* Hooks for Earthworm logging facility.
***************************************************************************/
int nmxptool_ew_logit_msg (char *msg) {
logit ("t", msg);
logit ("o", msg);
return 0;
}
int nmxptool_ew_logit_err (char *msg) {
logit ("t", msg);
logit ("e", msg);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment