From: Ali Gholami Rudi Date: Sun, 8 Nov 2009 15:59:23 +0000 (+0330) Subject: doc: fix checking socket() in net tstamp example X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fe9a2302230fa287715a11a3d3aec74eec75a6a4;p=openwrt%2Fstaging%2Fblogic.git doc: fix checking socket() in net tstamp example Signed-off-by: Ali Gholami Rudi Acked-by: Patrick Ohly Signed-off-by: Jiri Kosina --- 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));