ref: c1dc5d15c374c34395af92e002f064cd3e9ce5dc
parent: 752841fcc1831444ba96dc4ff72c58d66b77f958
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Sep 29 16:11:58 EDT 2014
snap: change ulong return of stackptr() to uvlong for amd64
--- a/sys/src/cmd/snap/take.c
+++ b/sys/src/cmd/snap/take.c
@@ -144,7 +144,7 @@
}
/* discover the stack pointer of the given process */
-ulong
+uvlong
stackptr(Proc *proc, int fd)
{
char *q;
@@ -202,8 +202,7 @@
Seg **s;
char *name, *segdat, *q, *f[128+1], buf[128];
int fd, i, stacki, nf, np;
- uvlong off, len, stackoff, stacklen;
- uvlong sp;
+ uvlong off, len, stackoff, stacklen, sp;
proc = emalloc(sizeof(*proc));
proc->pid = pid;