=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/misc.h,v retrieving revision 1.2.2.6 retrieving revision 1.3 diff -u -r1.2.2.6 -r1.3 --- src/usr.bin/ssh/misc.h 2002/03/08 17:04:42 1.2.2.6 +++ src/usr.bin/ssh/misc.h 2001/02/22 21:59:44 1.3 @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.h,v 1.2.2.6 2002/03/08 17:04:42 brad Exp $ */ +/* $OpenBSD: misc.h,v 1.3 2001/02/22 21:59:44 markus Exp $ */ /* * Author: Tatu Ylonen @@ -11,23 +11,13 @@ * incompatible with the protocol description in the RFC file, it must be * called by a name other than "ssh" or "Secure Shell". */ +/* remove newline at end of string */ +char *chop(char *s); -char *chop(char *); -char *strdelim(char **); -void set_nonblock(int); -void unset_nonblock(int); -void set_nodelay(int); -int a2port(const char *); -char *cleanhostname(char *); -char *colon(char *); -long convtime(const char *); +/* return next token in configuration line */ +char *strdelim(char **s); -struct passwd *pwcopy(struct passwd *); +/* set filedescriptor to non-blocking */ +void set_nonblock(int fd); -typedef struct arglist arglist; -struct arglist { - char **list; - int num; - int nalloc; -}; -void addargs(arglist *, char *, ...) __attribute__((format(printf, 2, 3))); +struct passwd * pwcopy(struct passwd *pw);