Commit b2188e78 authored by Matteo Quintiliani's avatar Matteo Quintiliani

Minor change


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@809 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 1287ae12
......@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it
*
* $Id: nmxp.c,v 1.66 2008-02-26 11:47:36 mtheo Exp $
* $Id: nmxp.c,v 1.67 2008-02-28 13:59:33 mtheo Exp $
*
*/
......@@ -142,6 +142,7 @@ int nmxp_sendConnectRequest(int isock, char *naqs_username, char *naqs_password,
NMXP_CONNECT_REQUEST connectRequest;
int naqs_username_length, naqs_password_length;
int32_t protocol_version = 0;
char *pp = NULL;
nmxp_log(NMXP_LOG_NORM, NMXP_LOG_D_CRC, "%s - %s\n",
NMXP_LOG_STR(naqs_username), NMXP_LOG_STR(naqs_password));
......@@ -209,7 +210,7 @@ int nmxp_sendConnectRequest(int isock, char *naqs_username, char *naqs_password,
for(i=0; i < crc32buf_length; i++) {
nmxp_log(NMXP_LOG_NORM_NO, NMXP_LOG_D_CRC, "%d ", crc32buf[i]);
}
char *pp = (char *) &connectRequest.crc32;
pp = (char *) &connectRequest.crc32;
for(i=0; i < sizeof(connectRequest.crc32); i++) {
nmxp_log(NMXP_LOG_NORM_NO, NMXP_LOG_D_CRC, "%d ", pp[i]);
}
......@@ -630,6 +631,7 @@ int nmxp_raw_stream_manage(NMXP_RAW_STREAM_DATA *p, NMXP_DATA_PROCESS *a_pd, int
int i_func_pd;
char str_time[200];
NMXP_DATA_PROCESS *pd = NULL;
int y, w;
/* Allocate pd copy value from a_pd */
if(a_pd) {
......@@ -745,7 +747,6 @@ int nmxp_raw_stream_manage(NMXP_RAW_STREAM_DATA *p, NMXP_DATA_PROCESS *a_pd, int
}
/* Check if some element in pdlist is NULL and remove it */
int y, w;
y=0;
while(y < p->n_pdlist) {
if(p->pdlist[y] == NULL) {
......
......@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it
*
* $Id: nmxp_chan.c,v 1.32 2008-02-24 17:41:44 mtheo Exp $
* $Id: nmxp_chan.c,v 1.33 2008-02-28 13:58:57 mtheo Exp $
*
*/
......@@ -537,9 +537,10 @@ NMXP_META_CHAN_LIST *nmxp_meta_chan_set_network(NMXP_META_CHAN_LIST *chan_list,
void nmxp_meta_chan_print(NMXP_META_CHAN_LIST *chan_list) {
NMXP_META_CHAN_LIST *iter = chan_list;
char str_start_time[200], str_end_time[200];
int i_chan = 0;
str_start_time[0] = 0;
str_end_time[0] = 0;
int i_chan = 0;
nmxp_log(NMXP_LOG_NORM, NMXP_LOG_D_CHANNEL, "nmxp_meta_chan_print()\n");
......
......@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it
*
* $Id: nmxptool_getoptlong.c,v 1.70 2008-02-28 12:23:01 mtheo Exp $
* $Id: nmxptool_getoptlong.c,v 1.71 2008-02-28 13:58:07 mtheo Exp $
*
*/
......@@ -410,6 +410,9 @@ int nmxptool_getopt_long(int argc, char **argv, NMXPTOOL_PARAMS *params)
char optstr[300] = "H:P:D:C:N:n:S:R:s:e:t:d:u:p:M:T:v:B:A:F:gGblLiwhV";
int option_index = 0;
#ifdef HAVE_LIBMSEED
strcat(optstr, "m");
#endif
......@@ -420,8 +423,6 @@ int nmxptool_getopt_long(int argc, char **argv, NMXPTOOL_PARAMS *params)
/* getopt_long stores the option index here. */
int option_index = 0;
/* init array for checking one time option */
for(i=0; i<255; i++) {
one_time_option[i] = 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