Skip to content

Commit 2e64972

Browse files
committed
style: format C files
1 parent 73d2378 commit 2e64972

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

ext/sqlite3/exception.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,16 @@ rb_sqlite3_raise(sqlite3 *db, int status)
102102
* accepts a sqlite3 error message as the final argument, which will be `sqlite3_free`d
103103
*/
104104
void
105-
rb_sqlite3_raise_msg(sqlite3 *db, int status, const char* msg)
105+
rb_sqlite3_raise_msg(sqlite3 *db, int status, const char *msg)
106106
{
107-
VALUE exception;
107+
VALUE exception;
108108

109-
if (status == SQLITE_OK) {
110-
return;
111-
}
109+
if (status == SQLITE_OK) {
110+
return;
111+
}
112112

113-
exception = rb_exc_new2(rb_path2class("SQLite3::Exception"), msg);
114-
sqlite3_free((void*)msg);
115-
rb_iv_set(exception, "@code", INT2FIX(status));
116-
rb_exc_raise(exception);
113+
exception = rb_exc_new2(rb_path2class("SQLite3::Exception"), msg);
114+
sqlite3_free((void *)msg);
115+
rb_iv_set(exception, "@code", INT2FIX(status));
116+
rb_exc_raise(exception);
117117
}

ext/sqlite3/exception.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
#define CHECK_MSG(_db, _status, _msg) rb_sqlite3_raise_msg(_db, _status, _msg);
66

77
void rb_sqlite3_raise(sqlite3 *db, int status);
8-
void rb_sqlite3_raise_msg(sqlite3 *db, int status, const char* msg);
8+
void rb_sqlite3_raise_msg(sqlite3 *db, int status, const char *msg);
99

1010
#endif

0 commit comments

Comments
 (0)