Skip to content
This repository has been archived by the owner on Feb 19, 2018. It is now read-only.

Commit

Permalink
Indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolf Timmermans committed May 29, 2010
1 parent ef59743 commit 1d080d7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ext/sedna/sedna.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,17 +401,18 @@ static VALUE cSedna_s_new(VALUE klass)
*/
static VALUE cSedna_initialize(VALUE self, VALUE options)
{
VALUE host_k, db_k, user_k, pw_k, host_v, db_v, user_v, pw_v;
VALUE host_k, db_k, user_k, pw_k,
host_v, db_v, user_v, pw_v;
char *host, *db, *user, *pw;

// Ensure the argument is a Hash.
Check_Type(options, T_HASH);

// Store the symbols of the valid hash keys.
host_k = ID2SYM(rb_intern("host"));
db_k = ID2SYM(rb_intern("database"));
db_k = ID2SYM(rb_intern("database"));
user_k = ID2SYM(rb_intern("username"));
pw_k = ID2SYM(rb_intern("password"));
pw_k = ID2SYM(rb_intern("password"));

// Get the connection details or set them to the default values if not given.
if(NIL_P(host_v = rb_hash_aref(options, host_k))) host = strdup(DEFAULT_HOST); else host = StringValuePtr(host_v);
Expand Down

0 comments on commit 1d080d7

Please sign in to comment.