@@ -192,7 +192,7 @@ static void continue_until(pid_t chpid, void *addr)
192192 struct user_regs_struct regs ;
193193
194194 /* Obtain the instructions at the <addr>. */
195- unsigned long data = ptrace (PTRACE_PEEKTEXT , chpid , addr , 0 );
195+ unsigned long data = ptrace (PTRACE_PEEKTEXT , chpid , addr , NULL );
196196 /*
197197 * Emit the <int 3> instruction to the <addr>.
198198 * XXX: <int 3> is poisoned as the LSB to the <data>
@@ -201,7 +201,7 @@ static void continue_until(pid_t chpid, void *addr)
201201 ptrace (PTRACE_POKETEXT , chpid , addr , int3poison (data ));
202202
203203 /* Resume <chpid> tracee until SIGTRAP occurs. */
204- ptrace (PTRACE_CONT , chpid , 0 , 0 );
204+ ptrace (PTRACE_CONT , chpid , NULL , NULL );
205205
206206 /*
207207 * Wait <chpid> tracee signal-delivery-stop and check
@@ -210,7 +210,7 @@ static void continue_until(pid_t chpid, void *addr)
210210 wait_alive (chpid );
211211
212212 /* Obtain GPR set to tweak RIP for further execution. */
213- ptrace (PTRACE_GETREGS , chpid , 0 , & regs );
213+ ptrace (PTRACE_GETREGS , chpid , NULL , & regs );
214214 /*
215215 * Make sure we indeed are stopped at <addr>.
216216 * XXX: RIP points right after <int 3> instruction.
@@ -223,7 +223,7 @@ static void continue_until(pid_t chpid, void *addr)
223223 * instruction at the <addr>.
224224 */
225225 regs .rip -= sizeof (INT3 );
226- ptrace (PTRACE_SETREGS , chpid , 0 , & regs );
226+ ptrace (PTRACE_SETREGS , chpid , NULL , & regs );
227227 ptrace (PTRACE_POKETEXT , chpid , addr , data );
228228}
229229
0 commit comments