diff options
author | Jean-Baptiste Maillet <jean-baptiste.maillet@parrot.com> | 2014-11-28 10:49:01 +0100 |
---|---|---|
committer | Jean-Baptiste Maillet <jean-baptiste.maillet@parrot.com> | 2014-11-28 10:49:01 +0100 |
commit | 86fb30d8de54402a44c7f1637f3fdc813696db3d (patch) | |
tree | e26aa23247dc26fe03f67cc9fb207d31d7513d88 /examples/live_stream | |
parent | 30438dac871db47f4cf0ae3486027c85cdf67a61 (diff) | |
download | Open-AVB-86fb30d8de54402a44c7f1637f3fdc813696db3d.tar.gz |
talkers / listeners: minor, code move, putting globals together
Diffstat (limited to 'examples/live_stream')
-rw-r--r-- | examples/live_stream/listener.c | 3 | ||||
-rw-r--r-- | examples/live_stream/talker.c | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/live_stream/listener.c b/examples/live_stream/listener.c index c7d623b0..d415c8ff 100644 --- a/examples/live_stream/listener.c +++ b/examples/live_stream/listener.c @@ -31,8 +31,9 @@ #define USE_MRPD 1 -device_t igb_dev; +/* globals */ +device_t igb_dev; unsigned char DEST_ADDR[] = { 0x91, 0xE0, 0xF0, 0x00, 0x0E, 0x80 }; void sigint_handler(int signum) diff --git a/examples/live_stream/talker.c b/examples/live_stream/talker.c index 9b8e795c..15e0eead 100644 --- a/examples/live_stream/talker.c +++ b/examples/live_stream/talker.c @@ -32,11 +32,10 @@ #define STREAMID 0xABCDEF #define PACKET_IPG 125000 /* 1 packet every 125 usec */ -/* global variables */ -int g_start_feed_socket = 0; +/* globals */ + device_t igb_dev; uint32_t payload_length; - unsigned char STATION_ADDR[] = { 0, 0, 0, 0, 0, 0 }; unsigned char STREAM_ID[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; /* IEEE 1722 reserved address */ |