fix bad function declarations in manpages

This commit is contained in:
BurnZeZ 2019-04-09 18:34:17 +00:00
parent 7b10062669
commit 424424fe50
17 changed files with 24 additions and 24 deletions

View file

@ -66,7 +66,7 @@ typedef struct Srv {
.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)

View file

@ -47,7 +47,7 @@ uint auth_rpc(AuthRpc *rpc, char *verb, void *a, int n);
int auth_getkey(char *params);
.PP
.B
int (*amount_getkey)(char*, char*);
int (*amount_getkey)(char*);
.PP
.B
void auth_freeAI(AuthInfo *ai);

View file

@ -8,7 +8,7 @@ cputime, times, cycles \- cpu time in this process and children
.PP
.ta \w'\fLdouble 'u
.B
int times(long t[4])
long times(long t[4])
.PP
.B
double cputime(void)

View file

@ -147,9 +147,9 @@ void fillarc(Image *dst, Point c, int a, int b, Image *src,
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

View file

@ -70,7 +70,7 @@ void edrawgetrect(Rectangle r, int up)
int emenuhit(int but, Mouse *m, Menu *menu)
.PP
.B
int emoveto(Point p)
void emoveto(Point p)
.PP
.B
void esetcursor(Cursor *c)

View file

@ -31,7 +31,7 @@ int fcallfmt(Fmt*)
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)

View file

@ -55,7 +55,7 @@ void frdrawsel(Frame *f, Point pt0, ulong p0, ulong p1,
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

View file

@ -33,7 +33,7 @@ int ioclose(Ioproc *io, int fd);
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);

View file

@ -51,7 +51,7 @@ int isv4(uchar *ipaddr)
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)

View file

@ -51,16 +51,16 @@ Memimage* memlalloc(Memscreen *s, Rectangle r, Refreshfn fn, void *arg, ulong co
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)

View file

@ -47,7 +47,7 @@ char* plumblookup(Plumbattr *a, char *name)
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)

View file

@ -31,7 +31,7 @@ int poolisoverlap(Pool* pool, void* ptr, ulong len)
void* poolrealloc(Pool* pool, void* ptr, ulong size)
.PP
.B
void poolcompact(Pool* pool)
int poolcompact(Pool* pool)
.PP
.B
void poolcheck(Pool *pool)

View file

@ -56,7 +56,7 @@ int runevsnprint(Rune *s, int len, char *format, va_list v)
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

View file

@ -23,7 +23,7 @@ int strncmp(char *s1, char *s2, long n)
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)

View file

@ -29,7 +29,7 @@ int fileelem(Sym **fp, uchar *encname, char *buf, int n)
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 @@ long pc2line(uvlong pc)
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 globalsym(Symbol *s, int index)
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)

View file

@ -46,7 +46,7 @@ int ttfgetcontour(TTGlyph *g, int idx, float **fp, int *nfp);
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,

View file

@ -33,7 +33,7 @@ Screen* publicscreen(Display *d, int id, ulong chan)
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)