Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
[linux-2.6.git] / Documentation / networking / timestamping / timestamping.c
index 7b81d16..8ba82bf 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));