summaryrefslogtreecommitdiff
path: root/app/cwm/search.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2014-09-07 19:27:31 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2014-09-07 19:27:31 +0000
commit0e0aedaf6e1b51a3dbf4fac94141625c60174bbc (patch)
treea70b539465871bf8dee4240f381dfd9c546a80f5 /app/cwm/search.c
parent20216283cf4ecf8d22a8012f149374118137cdc3 (diff)
more style nits
Diffstat (limited to 'app/cwm/search.c')
-rw-r--r--app/cwm/search.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/cwm/search.c b/app/cwm/search.c
index 3ee8e9d42..1c3f22a9f 100644
--- a/app/cwm/search.c
+++ b/app/cwm/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);
}