summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Gholami Rudi <ali@rudi.ir>2009-11-08 19:29:23 +0330
committerJiri Kosina <jkosina@suse.cz>2010-02-04 11:55:46 +0100
commitfe9a2302230fa287715a11a3d3aec74eec75a6a4 (patch)
tree4caf51f4e83d166fb2a8335ac4ae082f4b673bdf
parentedf86baae2e92bc03615086b2a341cd6d56c20f2 (diff)
doc: fix checking socket() in net tstamp example
Signed-off-by: Ali Gholami Rudi <ali@rudi.ir> Acked-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--Documentation/networking/timestamping/timestamping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/networking/timestamping/timestamping.c b/Documentation/networking/timestamping/timestamping.c
index a7936fe8444..bab619a4821 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));