1. Pypy
  2. Untitled project
  3. pypy

Commits

Antonio Cuni  committed 034d4ee

(Da_Blitz) fix ctypes warnings

  • Participants
  • Parent commits 6d32191
  • Branches default

Comments (0)

Files changed (1)

File lib_pypy/_pypy_wait.py

View file
 
 libc = CDLL(find_library("c"))
 c_wait3 = libc.wait3
-
 c_wait3.argtypes = [POINTER(c_int), c_int, POINTER(_struct_rusage)]
+c_wait3.restype = c_int
 
 c_wait4 = libc.wait4
-
 c_wait4.argtypes = [c_int, POINTER(c_int), c_int, POINTER(_struct_rusage)]
+c_wait4.restype = c_int
 
 def create_struct_rusage(c_struct):
     return struct_rusage((