diff options
author | Ali Gholami Rudi <ali@rudi.ir> | 2009-11-08 10:59:23 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-02-04 05:55:46 -0500 |
commit | fe9a2302230fa287715a11a3d3aec74eec75a6a4 (patch) | |
tree | 4caf51f4e83d166fb2a8335ac4ae082f4b673bdf /Documentation/networking | |
parent | edf86baae2e92bc03615086b2a341cd6d56c20f2 (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>
Diffstat (limited to 'Documentation/networking')
-rw-r--r-- | Documentation/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 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) | |||
370 | } | 370 | } |
371 | 371 | ||
372 | sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); | 372 | sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); |
373 | if (socket < 0) | 373 | if (sock < 0) |
374 | bail("socket"); | 374 | bail("socket"); |
375 | 375 | ||
376 | memset(&device, 0, sizeof(device)); | 376 | memset(&device, 0, sizeof(device)); |