summaryrefslogtreecommitdiff
path: root/usr.bin/users
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/users')
-rw-r--r--usr.bin/users/users.cc7
1 files 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 <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);
}