summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-03-17 10:09:52 +0000
committerbrian <brian@FreeBSD.org>2001-03-17 10:09:52 +0000
commitbc0c19b69b08dd66b205143b08c0a40d413f071f (patch)
treec125d52ab94080282b6865d4f9dd49635a0a9cf3
parentcf0fcea2b7ae26222f4865e9a6df53972a02f443 (diff)
downloadFreeBSD-src-bc0c19b69b08dd66b205143b08c0a40d413f071f.zip
FreeBSD-src-bc0c19b69b08dd66b205143b08c0a40d413f071f.tar.gz
Fix some further style nits
Pointed out by: bde
-rw-r--r--lib/libutil/trimdomain.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/libutil/trimdomain.c b/lib/libutil/trimdomain.c
index b6464e0..61e0fdb 100644
--- a/lib/libutil/trimdomain.c
+++ b/lib/libutil/trimdomain.c
@@ -24,9 +24,13 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $FreeBSD$
*/
+#if !defined(lint)
+static const char rcsid[] =
+ "$FreeBSD$";
+#endif /* not lint */
+
#include <sys/param.h>
#include <libutil.h>
@@ -51,11 +55,11 @@ static int isDISP(const char *);
void
trimdomain(char *fullhost, int hostsize)
{
- static char domain[MAXHOSTNAMELEN];
- static int first = 1;
- static size_t dlen;
- char *s, *end;
- size_t len;
+ static size_t dlen;
+ static int first = 1;
+ static char domain[MAXHOSTNAMELEN];
+ char *end, *s;
+ size_t len;
if (first) {
/* XXX: Should we assume that our domain is this persistent ? */
@@ -96,7 +100,7 @@ trimdomain(char *fullhost, int hostsize)
static int
isDISP(const char *disp)
{
- int res, w;
+ int res, w;
w = strspn(disp, "0123456789");
res = 0;
@@ -110,6 +114,5 @@ isDISP(const char *disp)
res = 1; /* NN.NN */
}
}
-
return (res);
}
OpenPOWER on IntegriCloud