use Erlang typedefs instead of hardcoded types
for example, on Linux x86_64, ErlDrvSSizeT is long, not int
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user