1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

While looking for a bug, tripped over style issues with added

code.  Fix them.
This commit is contained in:
Jordan K. Hubbard 2000-02-18 07:00:01 +00:00
parent 9f914b5425
commit b349038c95
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57311

View File

@ -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++;
}