Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

s#writeable#writable#g

  • Loading branch information...
commit 0a6e6b2f5a2c8dc022063c377029e880bf1bfeeb 1 parent a1619b9
@adoy adoy authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 stomp.c
View
8 stomp.c
@@ -126,9 +126,9 @@ void stomp_set_error(stomp_t *stomp, const char *error, int errnum, const char *
}
/* }}} */
-/* {{{ stomp_writeable
+/* {{{ stomp_writable
*/
-int stomp_writeable(stomp_t *stomp)
+int stomp_writable(stomp_t *stomp)
{
int n;
@@ -182,7 +182,7 @@ int stomp_connect(stomp_t *stomp, const char *host, unsigned short port TSRMLS_D
return 0;
}
- if (stomp_writeable(stomp)) {
+ if (stomp_writable(stomp)) {
#if HAVE_STOMP_SSL
if (stomp->options.use_ssl) {
SSL_CTX *ctx = SSL_CTX_new(SSLv23_client_method());
@@ -296,7 +296,7 @@ int stomp_send(stomp_t *stomp, stomp_frame_t *frame TSRMLS_DC)
smart_str_appendl(&buf, frame->body, frame->body_length > 0 ? frame->body_length : strlen(frame->body));
}
- if (!stomp_writeable(stomp)) {
+ if (!stomp_writable(stomp)) {
char error[1024];
snprintf(error, sizeof(error), "Unable to send data");
stomp_set_error(stomp, error, errno, NULL);
Please sign in to comment.
Something went wrong with that request. Please try again.