diff options
author | ed <ed@FreeBSD.org> | 2014-07-10 16:10:39 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2014-07-10 16:10:39 +0000 |
commit | 07cf1ef3f7a3dad252893abdb8761fdd64d97f5a (patch) | |
tree | 817d8725ee0de8e3a9811dcc69b54af1527011db /usr.bin/users | |
parent | fc8de5749e765b365b0f0ebfc042c1290de4541d (diff) | |
download | FreeBSD-src-07cf1ef3f7a3dad252893abdb8761fdd64d97f5a.zip FreeBSD-src-07cf1ef3f7a3dad252893abdb8761fdd64d97f5a.tar.gz |
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).
Diffstat (limited to 'usr.bin/users')
-rw-r--r-- | usr.bin/users/users.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/users/users.cc b/usr.bin/users/users.cc index fafe43e..914888d 100644 --- a/usr.bin/users/users.cc +++ b/usr.bin/users/users.cc @@ -1,4 +1,4 @@ -/* +/*- * Copyright (c) 2014 Pietro Cerutti <gahr@FreeBSD.org> * All rights reserved. * @@ -35,8 +35,8 @@ __FBSDID("$FreeBSD$"); #include <algorithm> #include <iostream> #include <iterator> -#include <string> #include <set> +#include <string> using namespace std; int @@ -57,10 +57,9 @@ main(int argc, char **) endutxent(); if (!names.empty()) { - std::set<string>::iterator last = names.end(); + set<string>::iterator last = names.end(); --last; copy(names.begin(), last, ostream_iterator<string>(cout, " ")); cout << *last << endl; } - return (0); } |