ref: 424424fe50c29aa606cea42d176dcac71b968efc
parent: 7b10062669dbc0e41f1483d1b57af64c2ad93b11
author: BurnZeZ <devnull@localhost>
date: Tue Apr 9 14:34:17 EDT 2019
fix bad function declarations in manpages
--- a/sys/man/2/9p
+++ b/sys/man/2/9p
@@ -66,7 +66,7 @@
.nf
.ft L
.ta \w'\fLvoid* 'u
-int srv(Srv *s)
+void srv(Srv *s)
void postmountsrv(Srv *s, char *name, char *mtpt, int flag)
void postsharesrv(Srv *s, char *name, char *mtpt, char *desc)
void threadpostmountsrv(Srv *s, char *name, char *mtpt, int flag)
--- a/sys/man/2/auth
+++ b/sys/man/2/auth
@@ -47,7 +47,7 @@
int auth_getkey(char *params);
.PP
.B
-int (*amount_getkey)(char*, char*);
+int (*amount_getkey)(char*);
.PP
.B
void auth_freeAI(AuthInfo *ai);
--- a/sys/man/2/cputime
+++ b/sys/man/2/cputime
@@ -8,7 +8,7 @@
.PP
.ta \w'\fLdouble 'u
.B
-int times(long t[4])
+long times(long t[4])
.PP
.B
double cputime(void)
--- a/sys/man/2/draw
+++ b/sys/man/2/draw
@@ -147,9 +147,9 @@
void fillarcop(Image *dst, Point c, int a, int b, Image *src,
Point sp, int alpha, int phi, Drawop op)
.PB
-int icossin(int deg, int *cosp, int *sinp)
+void icossin(int deg, int *cosp, int *sinp)
.PB
-int icossin2(int x, int y, int *cosp, int *sinp)
+void icossin2(int x, int y, int *cosp, int *sinp)
.PB
void border(Image *dst, Rectangle r, int i, Image *color, Point sp)
.PB
--- a/sys/man/2/event
+++ b/sys/man/2/event
@@ -70,7 +70,7 @@
int emenuhit(int but, Mouse *m, Menu *menu)
.PP
.B
-int emoveto(Point p)
+void emoveto(Point p)
.PP
.B
void esetcursor(Cursor *c)
--- a/sys/man/2/fcall
+++ b/sys/man/2/fcall
@@ -31,7 +31,7 @@
int dirmodefmt(Fmt*)
.PP
.B
-int read9pmsg(int fd, uchar *buf, uint nbuf)
+int read9pmsg(int fd, void *buf, uint nbuf)
.PP
.B
int statcheck(uchar *buf, uint nbuf)
--- a/sys/man/2/frame
+++ b/sys/man/2/frame
@@ -55,7 +55,7 @@
int highlighted)
.PP
.B
-void frdrawsel0(Frame *f, Point pt0, ulong p0, ulong p1,
+Point frdrawsel0(Frame *f, Point pt0, ulong p0, ulong p1,
.B
Image *back, Image *text)
.PP
--- a/sys/man/2/ioproc
+++ b/sys/man/2/ioproc
@@ -33,7 +33,7 @@
long ioread(Ioproc *io, int fd, void *a, long n);
long ioreadn(Ioproc *io, int fd, void *a, long n);
long iowrite(Ioproc *io, int fd, void *a, long n);
-int iodial(Ioproc *io, char *addr, char *local, char *dir, char *cdfp);
+int iodial(Ioproc *io, char *addr, char *local, char *dir, int *cdfp);
int iosleep(Ioproc *io, long n);
.XX
int ioflush(Ioproc *io);
--- a/sys/man/2/ip
+++ b/sys/man/2/ip
@@ -51,7 +51,7 @@
void v4tov6(uchar *ipv6, uchar *ipv4)
.PP
.B
-void v6tov4(uchar *ipv4, uchar *ipv6)
+int v6tov4(uchar *ipv4, uchar *ipv6)
.PP
.B
ushort nhgets(void *p)
--- a/sys/man/2/memlayer
+++ b/sys/man/2/memlayer
@@ -51,16 +51,16 @@
int memlsetrefresh(Memimage *i, Refreshfn fn, void *arg)
.PP
.B
-int memldelete(Memimage *i)
+void memldelete(Memimage *i)
.PP
.B
-int memlfree(Memimage *i)
+void memlfree(Memimage *i)
.PP
.B
-int memlexpose(Memimage *i, Rectangle r)
+void memlexpose(Memimage *i, Rectangle r)
.PP
.B
-int memlhide(Memimage *i, Rectangle r)
+void memlhide(Memimage *i, Rectangle r)
.PP
.B
void memltofront(Memimage *i)
--- a/sys/man/2/plumb
+++ b/sys/man/2/plumb
@@ -47,7 +47,7 @@
Plumbattr* plumbaddattr(Plumbattr *a, Plumbattr *new)
.PP
.B
-Plumbattr* plumbdelattr(Plumbattra *a, char *name)
+Plumbattr* plumbdelattr(Plumbattr *a, char *name)
.PP
.B
int eplumb(int key, char *port)
--- a/sys/man/2/pool
+++ b/sys/man/2/pool
@@ -31,7 +31,7 @@
void* poolrealloc(Pool* pool, void* ptr, ulong size)
.PP
.B
-void poolcompact(Pool* pool)
+int poolcompact(Pool* pool)
.PP
.B
void poolcheck(Pool *pool)
--- a/sys/man/2/print
+++ b/sys/man/2/print
@@ -56,7 +56,7 @@
Rune* runevseprint(Rune *s, Rune *e, char *format, va_list v)
.PP
.B
-Rune* runevsmprint(Rune *format, va_list v)
+Rune* runevsmprint(char *format, va_list v)
.PP
.B
.SH DESCRIPTION
--- a/sys/man/2/strcat
+++ b/sys/man/2/strcat
@@ -23,7 +23,7 @@
int cistrcmp(char *s1, char *s2)
.PP
.B
-int cistrncmp(char *s1, char *s2, long n)
+int cistrncmp(char *s1, char *s2, int n)
.PP
.B
char* strcpy(char *s1, char *s2)
--- a/sys/man/2/symbol
+++ b/sys/man/2/symbol
@@ -29,7 +29,7 @@
int filesym(int index, char *buf, int n)
.PP
.B
-long pc2sp(uvlong pc)
+uvlong pc2sp(uvlong pc)
.PP
.B
long pc2line(uvlong pc)
@@ -38,7 +38,7 @@
void textseg(uvlong base, Fhdr *fp)
.PP
.B
-uvlong line2addr(ulong line, uvlong basepc, uvlong endpc)
+uvlong line2addr(long line, uvlong basepc, uvlong endpc)
.PP
.B
int lookup(char *fn, char *var, Symbol *s)
@@ -62,10 +62,10 @@
int textsym(Symbol *s, int index)
.PP
.B
-uvlong file2pc(char *file, ulong line)
+uvlong file2pc(char *file, long line)
.PP
.B
-int fileline(char *str, int n, uvlong addr)
+long fileline(char *str, int n, uvlong addr)
.PP
.B
int fnbound(uvlong addr, uvlong *bounds)
--- a/sys/man/2/ttf
+++ b/sys/man/2/ttf
@@ -46,7 +46,7 @@
TTBitmap* ttfrender(TTFont *f, char *s, char *e, int w, int h,
int flags, char **pp);
TTBitmap* ttfrunerender(TTFont *f, Rune *s, Rune *e, int w, int h,
- int flags, char **pp);
+ int flags, Rune **pp);
.PB
TTBitmap* ttfnewbitmap(int w, int h);
void ttfblit(TTBitmap *dst, int dstx, int dsty, TTBitmap *src,
--- a/sys/man/2/window
+++ b/sys/man/2/window
@@ -33,7 +33,7 @@
int freescreen(Screen *s)
.PP
.B
-Image* allocwindow(Screen *s, Rectangle r, int ref, int col)
+Image* allocwindow(Screen *s, Rectangle r, int ref, ulong col)
.PP
.B
void bottomwindow(Image *w)