summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>2000-02-18 07:00:01 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>2000-02-18 07:00:01 +0000
commitb349038c95fa6633679b16c5a851ff75c36260ce (patch)
treebeb4730064ee193690e089c72198a51c0c839435
parent9f914b542586593c7755968690c48b9715604dd6 (diff)
Notes
-rw-r--r--usr.sbin/pkg_install/delete/main.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/usr.sbin/pkg_install/delete/main.c b/usr.sbin/pkg_install/delete/main.c
index 5b2341e266c9..a1c5ba493529 100644
--- a/usr.sbin/pkg_install/delete/main.c
+++ b/usr.sbin/pkg_install/delete/main.c
@@ -82,26 +82,21 @@ main(int argc, char **argv)
argv += optind;
/* Get all the remaining package names, if any */
- while (*argv)
- {
- if( (pkgs_split = rindex(*argv, (int) '/')) != NULL )
- {
- while( !isalpha(*(pkgs_split+1)) )
- {
+ while (*argv) {
+ if ((pkgs_split = rindex(*argv, (int)'/')) != NULL) {
+ while (!isalpha(*(pkgs_split + 1))) {
*pkgs_split = '\0';
- if ( (pkgs_split = rindex(*argv, (int) '/')) == NULL )
+ if ((pkgs_split = rindex(*argv, (int) '/')) == NULL)
pkgs_split = *argv;
}
- if(pkgs_split != NULL)
- {
+ if (pkgs_split != NULL) {
if (*pkgs_split == '/')
pkgs_split++;
*pkgs = pkgs_split;
pkgs++;
}
}
- else
- {
+ else {
*pkgs = *argv;
pkgs++;
}