diff options
author | Ali Gholami Rudi <ali@rudi.ir> | 2009-11-08 18:59:23 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-02-04 13:55:46 +0300 |
commit | fe9a2302230fa287715a11a3d3aec74eec75a6a4 (patch) | |
tree | 4caf51f4e83d166fb2a8335ac4ae082f4b673bdf /Documentation/networking/timestamping | |
parent | edf86baae2e92bc03615086b2a341cd6d56c20f2 (diff) | |
download | linux-fe9a2302230fa287715a11a3d3aec74eec75a6a4.tar.xz |
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/timestamping')
-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 a7936fe8444a..bab619a48214 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)); |