Browse Source

Reintroducing libventi, removing getcallerpc arg (#742)

Signed-off-by: Álvaro Jurado <elbingmiss@gmail.com>
Álvaro Jurado 6 years ago
parent
commit
5ebdcb962a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sys/src/libventi/packet.c

+ 1 - 1
sys/src/libventi/packet.c

@@ -134,7 +134,7 @@ packetalloc(void)
 	p->first = nil;
 	p->last = nil;
 	p->next = nil;
-	p->pc = getcallerpc((char*)&p+8);	/* might not work, but fine */
+	p->pc = getcallerpc();
 
 	NOTFREE(p);
 	return p;