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>
This commit is contained in:
parent
edf86baae2
commit
fe9a230223
@ -370,7 +370,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
|
sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
|
||||||
if (socket < 0)
|
if (sock < 0)
|
||||||
bail("socket");
|
bail("socket");
|
||||||
|
|
||||||
memset(&device, 0, sizeof(device));
|
memset(&device, 0, sizeof(device));
|
||||||
|
Loading…
Reference in New Issue
Block a user