Skip to content

Commit

Permalink
Fix #43, Resolve LGTM issues
Browse files Browse the repository at this point in the history
Added header guard
Removed local parameter hiding global
  • Loading branch information
skliper committed May 21, 2020
1 parent c7886df commit a959171
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 23 deletions.
5 changes: 5 additions & 0 deletions Subsystems/cmdUtil/SendUdp.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@
** See the License for the specific language governing permissions and
** limitations under the License.
*/
#ifndef _sendudp_
#define _sendudp_

int SendUdp(char *hostname, char *portNum, char *packetData, int packetSize);

#endif /* _sendudp_ */
4 changes: 2 additions & 2 deletions Subsystems/cmdUtil/cmdUtil.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ typedef struct
/*
** Declare the global command data
*/
CommandData_t CommandData;
int hostByteOrder;
int hostByteOrder;

/*
** getopts parameter passing options string
Expand Down Expand Up @@ -397,6 +396,7 @@ int main(int argc, char *argv[])
int longIndex = 0;
int retStat;
unsigned short tempShort;
CommandData_t CommandData;

/*
** Initialize the CommandData struct
Expand Down
21 changes: 0 additions & 21 deletions Subsystems/cmdUtil/cmdUtil.sln

This file was deleted.

0 comments on commit a959171

Please sign in to comment.