Skip to content

Commit

Permalink
sysdeps/managarm: use the EV_VERSION macro in EVIOCGVERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
no92 committed Oct 2, 2024
1 parent b431d4b commit 5cb89dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysdeps/managarm/generic/ioctl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ int sys_ioctl(int fd, unsigned long request, void *arg, int *result) {

if(_IOC_TYPE(request) == 'E'
&& _IOC_NR(request) == _IOC_NR(EVIOCGVERSION)) {
*reinterpret_cast<int *>(arg) = 0x010001; // should be EV_VERSION
*reinterpret_cast<int *>(arg) = EV_VERSION;
*result = 0;
return 0;
}else if(_IOC_TYPE(request) == 'E'
Expand Down

0 comments on commit 5cb89dd

Please sign in to comment.