mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00:00
Fix a couple of style nits.
- Use set instead of std::set, to be consistent with the rest of the file. - Remove return (0); it's not required. - Add a dash at the beginning of the copyright, per style(9).
This commit is contained in:
parent
63cdd39993
commit
e8df2232e0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268500
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*-
|
||||||
* Copyright (c) 2014 Pietro Cerutti <gahr@FreeBSD.org>
|
* Copyright (c) 2014 Pietro Cerutti <gahr@FreeBSD.org>
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@ -35,8 +35,8 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <string>
|
|
||||||
#include <set>
|
#include <set>
|
||||||
|
#include <string>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -57,10 +57,9 @@ main(int argc, char **)
|
|||||||
endutxent();
|
endutxent();
|
||||||
|
|
||||||
if (!names.empty()) {
|
if (!names.empty()) {
|
||||||
std::set<string>::iterator last = names.end();
|
set<string>::iterator last = names.end();
|
||||||
--last;
|
--last;
|
||||||
copy(names.begin(), last, ostream_iterator<string>(cout, " "));
|
copy(names.begin(), last, ostream_iterator<string>(cout, " "));
|
||||||
cout << *last << endl;
|
cout << *last << endl;
|
||||||
}
|
}
|
||||||
return (0);
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user