]> Cypherpunks repositories - gostls13.git/commitdiff
libmach: fix freebsd compiler errors
authorRuss Cox <rsc@golang.org>
Wed, 13 Apr 2011 20:26:25 +0000 (16:26 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 13 Apr 2011 20:26:25 +0000 (16:26 -0400)
TBR=r
CC=golang-dev
https://golang.org/cl/4396045

src/libmach/freebsd.c

index 531861e94d5cf456f0fe181ba79aa2cea4644753..45de966ec07dac82a3cb04c1efa861dc4d60f27a 100644 (file)
@@ -8,24 +8,28 @@ int
 ctlproc(int pid, char *msg)
 {
        sysfatal("ctlproc unimplemented in FreeBSD");
+       return -1;
 }
 
 char*
 proctextfile(int pid)
 {
        sysfatal("proctextfile unimplemented in FreeBSD");
+       return nil;
 }
 
 char*
 procstatus(int pid)
 {
        sysfatal("procstatus unimplemented in FreeBSD");
+       return nil;
 }
 
 Map*
 attachproc(int pid, Fhdr *fp)
 {
        sysfatal("attachproc unimplemented in FreeBSD");
+       return nil;
 }
 
 void
@@ -38,4 +42,5 @@ int
 procthreadpids(int pid, int *p, int np)
 {
        sysfatal("procthreadpids unimplemented in FreeBSD");
+       return -1;
 }