diff options
author | djm@openbsd.org <djm@openbsd.org> | 2017-03-10 03:52:48 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2017-03-10 15:35:40 +1100 |
commit | 77a9be9446697fe8b5499fe651f4a82a71a4b51f (patch) | |
tree | db1d95a9321088f0a31a68f7b75bf8b5f3378802 | |
parent | 61b8ef6a66efaec07e023342cb94a10bdc2254dc (diff) |
upstream commit
reword a comment to make it fit 80 columns
Upstream-ID: 4ef509a66b96c7314bbcc87027c2af71fa9d0ba4
-rw-r--r-- | match.c | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: match.c,v 1.37 2017/03/10 04:24:55 djm Exp $ */ +/* $OpenBSD: match.c,v 1.36 2017/03/10 03:52:48 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -42,11 +42,9 @@ #include <ctype.h> #include <stdlib.h> #include <string.h> -#include <stdio.h> #include "xmalloc.h" #include "match.h" -#include "misc.h" /* * Returns true if the given string matches the pattern (which may contain ? @@ -179,13 +177,7 @@ match_pattern_list(const char *string, const char *pattern, int dolower) int match_hostname(const char *host, const char *pattern) { - char *hostcopy = xstrdup(host); - int r; - - lowercase(hostcopy); - r = match_pattern_list(hostcopy, pattern, 1); - free(hostcopy); - return r; + return match_pattern_list(host, pattern, 1); } /* |