Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2014 16:10:39 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r268500 - head/usr.bin/users
Message-ID:  <201407101610.s6AGAdB5069620@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Thu Jul 10 16:10:39 2014
New Revision: 268500
URL: http://svnweb.freebsd.org/changeset/base/268500

Log:
  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).

Modified:
  head/usr.bin/users/users.cc

Modified: head/usr.bin/users/users.cc
==============================================================================
--- head/usr.bin/users/users.cc	Thu Jul 10 15:58:28 2014	(r268499)
+++ head/usr.bin/users/users.cc	Thu Jul 10 16:10:39 2014	(r268500)
@@ -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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407101610.s6AGAdB5069620>