remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -2,22 +2,22 @@
|
||||
* Copyright (c) 2000 Kungliga Tekniska Högskolan
|
||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||
* All rights reserved.
|
||||
*
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
*
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
*
|
||||
* 3. Neither the name of the Institute nor the names of its contributors
|
||||
* may be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
@@ -41,7 +41,7 @@ RCSID("$Id$");
|
||||
/* getaddrinfo via string specifying host and port */
|
||||
|
||||
int ROKEN_LIB_FUNCTION
|
||||
roken_getaddrinfo_hostspec2(const char *hostspec,
|
||||
roken_getaddrinfo_hostspec2(const char *hostspec,
|
||||
int socktype,
|
||||
int port,
|
||||
struct addrinfo **ai)
|
||||
@@ -79,7 +79,7 @@ roken_getaddrinfo_hostspec2(const char *hostspec,
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
p = strchr (hostspec, ':');
|
||||
if (p != NULL) {
|
||||
char *end;
|
||||
@@ -90,13 +90,13 @@ roken_getaddrinfo_hostspec2(const char *hostspec,
|
||||
hostspec_len = strlen(hostspec);
|
||||
}
|
||||
snprintf (portstr, sizeof(portstr), "%u", port);
|
||||
|
||||
|
||||
snprintf (host, sizeof(host), "%.*s", hostspec_len, hostspec);
|
||||
return getaddrinfo (host, portstr, &hints, ai);
|
||||
}
|
||||
|
||||
int ROKEN_LIB_FUNCTION
|
||||
roken_getaddrinfo_hostspec(const char *hostspec,
|
||||
roken_getaddrinfo_hostspec(const char *hostspec,
|
||||
int port,
|
||||
struct addrinfo **ai)
|
||||
{
|
||||
|
Reference in New Issue
Block a user