Remove useless TSRM from the stomp_new
parent
c7ea4d16e0
commit
5940fe8264
|
@ -453,7 +453,7 @@ PHP_FUNCTION(stomp_connect)
|
|||
}
|
||||
}
|
||||
|
||||
stomp = stomp_new(url_parts->host, url_parts->port ? url_parts->port : 61613, STOMP_G(read_timeout_sec), STOMP_G(read_timeout_usec) TSRMLS_CC);
|
||||
stomp = stomp_new(url_parts->host, url_parts->port ? url_parts->port : 61613, STOMP_G(read_timeout_sec), STOMP_G(read_timeout_usec));
|
||||
php_url_free(url_parts);
|
||||
|
||||
#if HAVE_STOMP_SSL
|
||||
|
|
2
stomp.c
2
stomp.c
|
@ -35,7 +35,7 @@ extern zend_class_entry *stomp_ce_exception;
|
|||
|
||||
/* {{{ stomp_new
|
||||
*/
|
||||
stomp_t *stomp_new(const char *host, unsigned short port, long read_timeout_sec, long read_timeout_usec TSRMLS_DC)
|
||||
stomp_t *stomp_new(const char *host, unsigned short port, long read_timeout_sec, long read_timeout_usec)
|
||||
{
|
||||
/* Memory allocation for the stomp */
|
||||
stomp_t *stomp = (stomp_t *) emalloc(sizeof(stomp_t));
|
||||
|
|
2
stomp.h
2
stomp.h
|
@ -60,7 +60,7 @@ typedef struct _stomp_frame {
|
|||
int body_length;
|
||||
} stomp_frame_t;
|
||||
|
||||
stomp_t *stomp_new(const char *host, unsigned short port, long read_timeout_sec, long read_timeout_usec TSRMLS_DC);
|
||||
stomp_t *stomp_new(const char *host, unsigned short port, long read_timeout_sec, long read_timeout_usec);
|
||||
int stomp_connect(stomp_t *stomp TSRMLS_DC);
|
||||
void stomp_close(stomp_t *stomp TSRMLS_DC);
|
||||
int stomp_send(stomp_t *connection, stomp_frame_t *frame TSRMLS_DC);
|
||||
|
|
Loading…
Reference in New Issue