mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] trivial: fix checking socket() in net tstamp example
@ 2009-11-08 15:59 Ali Gholami Rudi
  2009-11-08 17:24 ` Patrick Ohly
  0 siblings, 1 reply; 5+ messages in thread
From: Ali Gholami Rudi @ 2009-11-08 15:59 UTC (permalink / raw)
  To: trivial; +Cc: linux-kernel, Patrick Ohly, linux-doc, David S. Miller


Signed-off-by: Ali Gholami Rudi <ali@rudi.ir>
---
 .../networking/timestamping/timestamping.c         |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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)
 		bail("socket");
 
 	memset(&device, 0, sizeof(device));

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-12-18 14:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-08 15:59 [PATCH] trivial: fix checking socket() in net tstamp example Ali Gholami Rudi
2009-11-08 17:24 ` Patrick Ohly
2009-11-08 17:57   ` Ali Gholami Rudi
2009-11-08 20:19   ` What's the state of the TX timestamping? Emilio G. Cota
2009-12-18 14:23   ` [PATCH] trivial: fix checking socket() in net tstamp example Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®