doc: fix checking socket() in net tstamp example
authorAli Gholami Rudi <ali@rudi.ir>
Sun, 8 Nov 2009 15:59:23 +0000 (19:29 +0330)
committerJiri Kosina <jkosina@suse.cz>
Thu, 4 Feb 2010 10:55:46 +0000 (11:55 +0100)
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>
Documentation/networking/timestamping/timestamping.c

index a7936fe8444a1830b5f57eccaf4ca610a42db358..bab619a482145e9a08ecc62f674d9c6bb05110cc 100644 (file)
@@ -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));