aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
authorokan2014-09-07 19:27:30 +0000
committerokan2014-09-07 19:27:30 +0000
commiteab7846097604d0bfc81f122685219fe7a738415 (patch)
tree6630de258aa2ebc267a9f79e9eeb32ca8d7e7ca5 /search.c
parent6ad47ab7a1880d92f7b8b36722a424dd841025eb (diff)
downloadcwm-eab7846097604d0bfc81f122685219fe7a738415.tar.gz
more style nits
Diffstat (limited to '')
-rw-r--r--search.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/search.c b/search.c
index 3ee8e9d..1c3f22a 100644
--- a/search.c
+++ b/search.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: search.c,v 1.39 2014/08/22 19:04:00 okan Exp $
+ * $OpenBSD: search.c,v 1.40 2014/09/07 19:27:30 okan Exp $
*/
#include <sys/param.h>
@@ -194,13 +194,13 @@ search_match_path(struct menu_q *menuq, struct menu_q *resultq, char *search, in
static void
search_match_path_exec(struct menu_q *menuq, struct menu_q *resultq, char *search)
{
- return (search_match_path(menuq, resultq, search, PATH_EXEC));
+ return(search_match_path(menuq, resultq, search, PATH_EXEC));
}
void
search_match_path_any(struct menu_q *menuq, struct menu_q *resultq, char *search)
{
- return (search_match_path(menuq, resultq, search, PATH_ANY));
+ return(search_match_path(menuq, resultq, search, PATH_ANY));
}
void
@@ -254,13 +254,13 @@ strsubmatch(char *sub, char *str, int zeroidx)
unsigned int n, flen;
if (sub == NULL || str == NULL)
- return (0);
+ return(0);
len = strlen(str);
sublen = strlen(sub);
if (sublen > len)
- return (0);
+ return(0);
if (!zeroidx)
flen = len - sublen;
@@ -269,7 +269,7 @@ strsubmatch(char *sub, char *str, int zeroidx)
for (n = 0; n <= flen; n++)
if (strncasecmp(sub, str + n, sublen) == 0)
- return (1);
+ return(1);
- return (0);
+ return(0);
}