Forráskód Böngészése

Fix compiler warnings in liboventi

plan9-sha1.c: remove funciton declaration that was never defined.

rpc.c: remove funciton declaration that was never defined.

plan9-thread.c: cast void** from privalloc() to Thread**

Change-Id: I00e345a1ecef26f81b0f1f226f2e9bb6508dc889
Signed-off-by: Hank Donnay <hdonnay@gmail.com>
Hank Donnay 9 éve
szülő
commit
b264544894

+ 0 - 1
sys/src/liboventi/plan9-sha1.c

@@ -12,7 +12,6 @@
 #include <oventi.h>
 #include <libsec.h>
 
-static void encode(uint8_t*, uint32_t*, uint32_t);
 extern void vtSha1Block(uint32_t *s, uint8_t *p, uint32_t len);
 
 struct VtSha1

+ 1 - 1
sys/src/liboventi/plan9-thread.c

@@ -167,7 +167,7 @@ vtThreadInit(void)
 		unlock(&lk);
 		return;
 	}
-	vtRock = privalloc();
+	vtRock = (Thread **)privalloc();
 	if(vtRock == nil)
 		vtFatal("can't allocate thread-private storage");
 	unlock(&lk);

+ 0 - 3
sys/src/liboventi/rpc.c

@@ -25,9 +25,6 @@ static char EBigPacket[] = "packet too long";
 static char ENullString[] = "missing string";
 static char EBadVersion[] = "bad format in version string";
 
-static Packet *vtRPC(VtSession *z, int op, Packet *p);
-
-
 VtSession *
 vtAlloc(void)
 {