comparison libfdcore/p_out.c @ 1119:79dd22145f52

Fix a number of compilation warnings
author Sebastien Decugis <sdecugis@freediameter.net>
date Tue, 14 May 2013 11:04:20 +0800
parents eb4ce68b6e5c
children 56c36d1007b4
comparison
equal deleted inserted replaced
1118:5b4dddbfccb3 1119:79dd22145f52
129 /* Send the message, log any error */ 129 /* Send the message, log any error */
130 CHECK_FCT_DO( ret = do_send(&msg, 0, peer->p_cnxctx, &peer->p_hbh, peer), 130 CHECK_FCT_DO( ret = do_send(&msg, 0, peer->p_cnxctx, &peer->p_hbh, peer),
131 { 131 {
132 if (msg) { 132 if (msg) {
133 char buf[256]; 133 char buf[256];
134 snprintf(buf, sizeof(buf), "Error while sending this message: s", strerror(ret)); 134 snprintf(buf, sizeof(buf), "Error while sending this message: %s", strerror(ret));
135 fd_hook_call(HOOK_MESSAGE_DROPPED, msg, NULL, buf, fd_msg_pmdl_get(msg)); 135 fd_hook_call(HOOK_MESSAGE_DROPPED, msg, NULL, buf, fd_msg_pmdl_get(msg));
136 fd_msg_free(msg); 136 fd_msg_free(msg);
137 } 137 }
138 } ); 138 } );
139 139
183 /* Do send the message */ 183 /* Do send the message */
184 CHECK_FCT_DO( ret = do_send(msg, flags, cnx, hbh, peer), 184 CHECK_FCT_DO( ret = do_send(msg, flags, cnx, hbh, peer),
185 { 185 {
186 if (msg) { 186 if (msg) {
187 char buf[256]; 187 char buf[256];
188 snprintf(buf, sizeof(buf), "Error while sending this message: s", strerror(ret)); 188 snprintf(buf, sizeof(buf), "Error while sending this message: %s", strerror(ret));
189 fd_hook_call(HOOK_MESSAGE_DROPPED, *msg, NULL, buf, fd_msg_pmdl_get(*msg)); 189 fd_hook_call(HOOK_MESSAGE_DROPPED, *msg, NULL, buf, fd_msg_pmdl_get(*msg));
190 fd_msg_free(*msg); 190 fd_msg_free(*msg);
191 *msg = NULL; 191 *msg = NULL;
192 } 192 }
193 } ); 193 } );
"Welcome to our mercurial repository"