Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754004AbZLROXq (ORCPT ); Fri, 18 Dec 2009 09:23:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753887AbZLROXp (ORCPT ); Fri, 18 Dec 2009 09:23:45 -0500 Received: from cantor.suse.de ([195.135.220.2]:57683 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751225AbZLROXo (ORCPT ); Fri, 18 Dec 2009 09:23:44 -0500 Date: Fri, 18 Dec 2009 15:23:41 +0100 (CET) From: Jiri Kosina To: Patrick Ohly Cc: Ali Gholami Rudi , "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , "David S. Miller" Subject: Re: [PATCH] trivial: fix checking socket() in net tstamp example In-Reply-To: <1257701045.29123.288.camel@pohly-mobl1.ikn.intel.com> Message-ID: References: <20091108155923.GA820@lilem.mirepesht> <1257701045.29123.288.camel@pohly-mobl1.ikn.intel.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 916 Lines: 27 On Sun, 8 Nov 2009, Patrick Ohly wrote: > > diff --git a/Documentation/networking/timestamping/timestamping.c b/Documentation/networking/timestamping/timestamping.c > > index a7936fe..bab619a 100644 > > --- a/Documentation/networking/timestamping/timestamping.c > > +++ b/Documentation/networking/timestamping/timestamping.c > > @@ -370,7 +370,7 @@ int main(int argc, char **argv) > > } > > > > sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); > > - if (socket < 0) > > + if (sock < 0) > > Argh, of course you are right. FWIW, acknowledged. Doesn't seem to be present in 2.6.33-rc1, I have applied it to my tree. Thanks, -- Jiri Kosina SUSE Labs, Novell Inc. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/