diff options
author | jp161948 <none@none> | 2007-04-02 05:33:26 -0700 |
---|---|---|
committer | jp161948 <none@none> | 2007-04-02 05:33:26 -0700 |
commit | 47b374ff8413339e27ddb691c18d22ffe3482515 (patch) | |
tree | 5c4a679e4018638ed40b17ceae5b3478f0ec4f4d /usr/src/cmd/ssh/libssh/common/misc.c | |
parent | f763a6cdd6a48d48089e0c8473a138f32345775a (diff) | |
download | illumos-gate-47b374ff8413339e27ddb691c18d22ffe3482515.tar.gz |
PSARC 2007/034 ssh/sshd resync with OpenSSH
6480090 ConnectTimeout functionality desired for SUNWssh
Diffstat (limited to 'usr/src/cmd/ssh/libssh/common/misc.c')
-rw-r--r-- | usr/src/cmd/ssh/libssh/common/misc.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/usr/src/cmd/ssh/libssh/common/misc.c b/usr/src/cmd/ssh/libssh/common/misc.c index 33454826f2..99c0778307 100644 --- a/usr/src/cmd/ssh/libssh/common/misc.c +++ b/usr/src/cmd/ssh/libssh/common/misc.c @@ -22,7 +22,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -119,7 +119,15 @@ set_nodelay(int fd) /* Characters considered whitespace in strsep calls. */ #define WHITESPACE " \t\r\n" -/* return next token in configuration line */ +/* + * Function returns a pointer to the 1st token on the line. Such a token can + * be an empty string in the case of '*s' equal to " value". It changes the + * first whitespace token or '=' character after the 1st token to '\0'. Upon + * return it changes '*s' to point to the first character of the next token. + * That token may be an empty string if the 1st token was followed only by + * whitespace or it could be a NULL pointer if the line contained one token + * only. + */ char * strdelim(char **s) { |