chiark / gitweb /
fishdescriptor: cast __errno_location correctly
[chiark-utils.git] / fishdescriptor / py / fishdescriptor / indonor.py
index 20bc8071b6d0f7eb9b1223c8269e90e0c0a05ebe..e227fb24b53a7a538ae6827a662f6ce9e7cbb0a2 100644 (file)
@@ -142,7 +142,7 @@ class DonorImplementation():
         # in my browser).  Also the error is very nonspecific :-/.
         # This seems to happen on jessie, and is fixed in stretch.
         # Anyway:
-        return parse_eval(expr_pat % '(*((int (*)(void))__errno_location)())')
+        return parse_eval(expr_pat % '(*((int*(*)(void))__errno_location)())')
 
     # calling functions (need to cast the function name to the right
     # type in case maybe gdb doesn't know the type)