use Erlang typedefs instead of hardcoded types

for example, on Linux x86_64, ErlDrvSSizeT is long, not int
This commit is contained in:
András Veres-Szentkirályi
2013-09-18 13:31:17 +02:00
parent 4a309c2d9c
commit b0f95b7774
2 changed files with 4 additions and 4 deletions

View File

@@ -148,9 +148,9 @@ static void stop(ErlDrvData handle) {
}
// Handle input from Erlang VM
static int control(
static ErlDrvSSizeT control(
ErlDrvData drv_data, unsigned int command, char *buf,
int len, char **rbuf, int rlen) {
ErlDrvSizeT len, char **rbuf, ErlDrvSizeT rlen) {
sqlite3_drv_t* driver_data = (sqlite3_drv_t*) drv_data;
switch (command) {
case CMD_SQL_EXEC: