From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNgT3-0005QD-BJ for qemu-devel@nongnu.org; Thu, 04 Apr 2013 05:28:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNgSv-0006gf-QJ for qemu-devel@nongnu.org; Thu, 04 Apr 2013 05:28:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNgSv-0006gY-JY for qemu-devel@nongnu.org; Thu, 04 Apr 2013 05:28:17 -0400 Date: Thu, 4 Apr 2013 10:28:12 +0100 From: "Richard W.M. Jones" Message-ID: <20130404092812.GU1461@rhmail.home.annexia.org> References: <1365027461-8884-1-git-send-email-rjones@redhat.com> <1365027461-8884-2-git-send-email-rjones@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v5 1/3] osdep: Add a function to get the current username. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org On Thu, Apr 04, 2013 at 10:08:10AM +0100, Peter Maydell wrote: > On 3 April 2013 23:17, Richard W.M. Jones wrote: > > +/* > > + * Get the login name of the current user. The string must be freed > > + * up by the caller. If the current user could not be determined, > > + * returns NULL and sets errno. > > + */ > > Any reason we can't just use g_get_user_name() ? None; I'll change the patch accordingly in the next version. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#)