Commit fe9a2302 authored by Ali Gholami Rudi's avatar Ali Gholami Rudi Committed by Jiri Kosina

doc: fix checking socket() in net tstamp example

Signed-off-by: default avatarAli Gholami Rudi <ali@rudi.ir>
Acked-by: default avatarPatrick Ohly <patrick.ohly@intel.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent edf86baa
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment