X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=blobdiff_plain;f=fishdescriptor%2Fpy%2Ffishdescriptor%2Findonor.py;h=e227fb24b53a7a538ae6827a662f6ce9e7cbb0a2;hp=20bc8071b6d0f7eb9b1223c8269e90e0c0a05ebe;hb=7adf096856bc7ae9735f570b25c2d20d9edde588;hpb=44c1812948913bc214b71f238d30fb1650039494 diff --git a/fishdescriptor/py/fishdescriptor/indonor.py b/fishdescriptor/py/fishdescriptor/indonor.py index 20bc807..e227fb2 100644 --- a/fishdescriptor/py/fishdescriptor/indonor.py +++ b/fishdescriptor/py/fishdescriptor/indonor.py @@ -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)