summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/delete/main.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>2000-02-18 07:00:01 +0000
committerjkh <jkh@FreeBSD.org>2000-02-18 07:00:01 +0000
commit6362c530d0432e0cf17d6da4319fab7ea8091122 (patch)
treea1853a79d427a580a00775c6f3ab4bd14b78ccc5 /usr.sbin/pkg_install/delete/main.c
parentce579c85fe54d312c029d0f79dee7ac918b31b3c (diff)
downloadFreeBSD-src-6362c530d0432e0cf17d6da4319fab7ea8091122.zip
FreeBSD-src-6362c530d0432e0cf17d6da4319fab7ea8091122.tar.gz
While looking for a bug, tripped over style issues with added
code. Fix them.
Diffstat (limited to 'usr.sbin/pkg_install/delete/main.c')
-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 5b2341e..a1c5ba4 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++;
}
OpenPOWER on IntegriCloud