Skip to content

Commit dae41fa

Browse files
committed
Fix #43, Resolve LGTM issues
Added header guard Removed local parameter hiding global
1 parent 3de6e98 commit dae41fa

File tree

3 files changed

+7
-23
lines changed

3 files changed

+7
-23
lines changed

Subsystems/cmdUtil/SendUdp.h

+5
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,9 @@
1717
** See the License for the specific language governing permissions and
1818
** limitations under the License.
1919
*/
20+
#ifndef _sendudp_
21+
#define _sendudp_
22+
2023
int SendUdp(char *hostname, char *portNum, char *packetData, int packetSize);
24+
25+
#endif /* _sendudp_ */

Subsystems/cmdUtil/cmdUtil.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ typedef struct
8080
/*
8181
** Declare the global command data
8282
*/
83-
CommandData_t CommandData;
84-
int hostByteOrder;
83+
int hostByteOrder;
8584

8685
/*
8786
** getopts parameter passing options string
@@ -397,6 +396,7 @@ int main(int argc, char *argv[])
397396
int longIndex = 0;
398397
int retStat;
399398
unsigned short tempShort;
399+
CommandData_t CommandData;
400400

401401
/*
402402
** Initialize the CommandData struct

Subsystems/cmdUtil/cmdUtil.sln

-21
This file was deleted.

0 commit comments

Comments
 (0)