Skip to content

Commit

Permalink
Style nits on placement of pointer declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
sodabrew committed Nov 22, 2015
1 parent fe76f67 commit ed5613d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ext/mysql2/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ static VALUE disconnect_and_raise(VALUE self, VALUE error) {
static VALUE do_query(void *args) {
struct async_query_args *async_args = args;
struct timeval tv;
struct timeval* tvp;
struct timeval *tvp;
long int sec;
int retval;
VALUE read_timeout;
Expand Down
6 changes: 3 additions & 3 deletions ext/mysql2/statement.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ static VALUE intern_usec, intern_sec, intern_min, intern_hour, intern_day, inter


static void rb_mysql_stmt_mark(void * ptr) {
mysql_stmt_wrapper* stmt_wrapper = ptr;
mysql_stmt_wrapper *stmt_wrapper = ptr;
if (!stmt_wrapper) return;

rb_gc_mark(stmt_wrapper->client);
Expand All @@ -29,7 +29,7 @@ static void *nogvl_stmt_close(void * ptr) {
}

static void rb_mysql_stmt_free(void * ptr) {
mysql_stmt_wrapper* stmt_wrapper = ptr;
mysql_stmt_wrapper *stmt_wrapper = ptr;
decr_mysql2_stmt(stmt_wrapper);
}

Expand Down Expand Up @@ -94,7 +94,7 @@ static void *nogvl_prepare_statement(void *ptr) {
}

VALUE rb_mysql_stmt_new(VALUE rb_client, VALUE sql) {
mysql_stmt_wrapper* stmt_wrapper;
mysql_stmt_wrapper *stmt_wrapper;
VALUE rb_stmt;
#ifdef HAVE_RUBY_ENCODING_H
rb_encoding *conn_enc;
Expand Down

0 comments on commit ed5613d

Please sign in to comment.