Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add missing driver entries

  • Loading branch information...
commit 9873a60cf03bb79257487c10ef21fd9d73a8a4b9 1 parent 0911702
@tuncer tuncer authored
Showing with 35 additions and 10 deletions.
  1. +23 −10 c_src/setuid_drv.c
  2. +12 −0 c_src/yaws_sendfile_drv.c
View
33 c_src/setuid_drv.c
@@ -121,16 +121,29 @@ static void setuid_stop(ErlDrvData drv_data)
DRIVER_INIT(setuid_drv)
{
- setuid_driver_entry.init = NULL; /* Not used */
- setuid_driver_entry.start = setuid_start;
- setuid_driver_entry.stop = setuid_stop;
- setuid_driver_entry.output = NULL;
- setuid_driver_entry.ready_input = NULL;
- setuid_driver_entry.ready_output = NULL;
- setuid_driver_entry.driver_name = "setuid_drv";
- setuid_driver_entry.finish = NULL;
- setuid_driver_entry.control = NULL;
- setuid_driver_entry.outputv = NULL;
+ setuid_driver_entry.init = NULL; /* Not used */
+ setuid_driver_entry.start = setuid_start;
+ setuid_driver_entry.stop = setuid_stop;
+ setuid_driver_entry.output = NULL;
+ setuid_driver_entry.ready_input = NULL;
+ setuid_driver_entry.ready_output = NULL;
+ setuid_driver_entry.driver_name = "setuid_drv";
+ setuid_driver_entry.finish = NULL;
+ setuid_driver_entry.handle = NULL;
+ setuid_driver_entry.control = NULL;
+ setuid_driver_entry.timeout = NULL;
+ setuid_driver_entry.outputv = NULL;
+ setuid_driver_entry.ready_async = NULL;
+ setuid_driver_entry.flush = NULL;
+ setuid_driver_entry.call = NULL;
+ setuid_driver_entry.event = NULL;
+ setuid_driver_entry.extended_marker = ERL_DRV_EXTENDED_MARKER;
+ setuid_driver_entry.major_version = ERL_DRV_EXTENDED_MAJOR_VERSION;
+ setuid_driver_entry.minor_version = ERL_DRV_EXTENDED_MINOR_VERSION;
+ setuid_driver_entry.driver_flags = 0;
+ setuid_driver_entry.handle2 = NULL;
+ setuid_driver_entry.process_exit = NULL;
+ setuid_driver_entry.stop_select = NULL;
return (ErlDrvEntry*) &setuid_driver_entry;
}
View
12 c_src/yaws_sendfile_drv.c
@@ -304,6 +304,18 @@ static ErlDrvEntry yaws_sendfile_driver_entry = {
NULL,
NULL,
NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ ERL_DRV_EXTENDED_MARKER,
+ ERL_DRV_EXTENDED_MAJOR_VERSION,
+ ERL_DRV_EXTENDED_MINOR_VERSION,
+ 0,
+ NULL,
+ NULL,
NULL
};
Please sign in to comment.
Something went wrong with that request. Please try again.