diff options
author | Ali Gholami Rudi <ali@rudi.ir> | 2009-11-08 16:59:23 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-02-04 11:55:46 +0100 |
commit | fe9a2302230fa287715a11a3d3aec74eec75a6a4 (patch) | |
tree | 4caf51f4e83d166fb2a8335ac4ae082f4b673bdf /Documentation | |
parent | Fix misspellings of "separate" in strings. (diff) | |
download | linux-fe9a2302230fa287715a11a3d3aec74eec75a6a4.tar.xz linux-fe9a2302230fa287715a11a3d3aec74eec75a6a4.zip |
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')
-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)); |