Skip to content

Commit

Permalink
doc: fix checking socket() in net tstamp example
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ali Gholami Rudi authored and Jiri Kosina committed Feb 4, 2010
1 parent edf86ba commit fe9a230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/networking/timestamping/timestamping.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit fe9a230

Please sign in to comment.