From 07cf1ef3f7a3dad252893abdb8761fdd64d97f5a Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 10 Jul 2014 16:10:39 +0000 Subject: [PATCH] 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). --- usr.bin/users/users.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/usr.bin/users/users.cc b/usr.bin/users/users.cc index fafe43ee0980..914888d98870 100644 --- a/usr.bin/users/users.cc +++ b/usr.bin/users/users.cc @@ -1,4 +1,4 @@ -/* +/*- * Copyright (c) 2014 Pietro Cerutti * All rights reserved. * @@ -35,8 +35,8 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include +#include using namespace std; int @@ -57,10 +57,9 @@ main(int argc, char **) endutxent(); if (!names.empty()) { - std::set::iterator last = names.end(); + set::iterator last = names.end(); --last; copy(names.begin(), last, ostream_iterator(cout, " ")); cout << *last << endl; } - return (0); }