Bugfix/code clean using gcc warnings (#371)
* Enable extra GCC warnings to discover subtle bugs * convert c++ comments to c comments * cleanup pedantic compiler warnings * Compile apps with GNU89 GNU99 GNU11 and GNU17 Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
+59
-60
@@ -175,72 +175,71 @@ static void print_usage(char *filename)
|
||||
static void print_help(char *filename)
|
||||
{
|
||||
printf("Send BACnet ConfirmedEventNotification message to a device.\n");
|
||||
printf(
|
||||
"device-id:\n"
|
||||
printf("device-id:\n"
|
||||
"BACnet Device Object Instance number that you are trying to\n"
|
||||
"communicate to. This number will be used to try and bind with\n"
|
||||
"the device using Who-Is and I-Am services. For example, if you were\n"
|
||||
"notifying Device Object 123, the device-instance would be 123.\n"
|
||||
"\n"
|
||||
"process-id:\n"
|
||||
"notifying Device Object 123, the device-instance would be 123.\n");
|
||||
printf("\n");
|
||||
printf("process-id:\n"
|
||||
"Process Identifier in the receiving device for which the\n"
|
||||
"notification is intended.\n"
|
||||
"\n"
|
||||
"initiating-device-id: the BACnet Device Object Instance number\n"
|
||||
"that initiated the ConfirmedEventNotification service request.\n"
|
||||
"\n"
|
||||
"event-object-type:\n"
|
||||
"notification is intended.\n");
|
||||
printf("\n");
|
||||
printf("initiating-device-id: the BACnet Device Object Instance number\n"
|
||||
"that initiated the ConfirmedEventNotification service request.\n");
|
||||
printf("\n");
|
||||
printf("event-object-type:\n"
|
||||
"The object type is defined either as the object-type name string\n"
|
||||
"as defined in the BACnet specification, or as the integer value.\n"
|
||||
"\n"
|
||||
"event-object-instance:\n"
|
||||
"The object instance number of the event object.\n"
|
||||
"\n"
|
||||
"sequence-number:\n"
|
||||
"The sequence number of the event.\n"
|
||||
"\n"
|
||||
"notification-class:\n"
|
||||
"The notification-class of the event.\n"
|
||||
"\n"
|
||||
"priority:\n"
|
||||
"The priority of the event.\n"
|
||||
"\n"
|
||||
"message-text:\n"
|
||||
"The message text of the event.\n"
|
||||
"\n"
|
||||
"notify-type:\n"
|
||||
"The notify type of the event.\n"
|
||||
"\n"
|
||||
"ack-required:\n"
|
||||
"The ack-required of the event (0=FALSE,1=TRUE).\n"
|
||||
"\n"
|
||||
"from-state:\n"
|
||||
"The from-state of the event.\n"
|
||||
"\n"
|
||||
"to-state:\n"
|
||||
"The to-state of the event.\n"
|
||||
"\n"
|
||||
"event-type\n"
|
||||
"The event-type of the event.\n"
|
||||
"\n");
|
||||
"as defined in the BACnet specification, or as the integer value.\n");
|
||||
printf("\n");
|
||||
printf("event-object-instance:\n"
|
||||
"The object instance number of the event object.\n");
|
||||
printf("\n");
|
||||
printf("sequence-number:\n"
|
||||
"The sequence number of the event.\n");
|
||||
printf("\n");
|
||||
printf("notification-class:\n"
|
||||
"The notification-class of the event.\n");
|
||||
printf("\n");
|
||||
printf("priority:\n"
|
||||
"The priority of the event.\n");
|
||||
printf("\n");
|
||||
printf("message-text:\n"
|
||||
"The message text of the event.\n");
|
||||
printf("\n");
|
||||
printf("notify-type:\n"
|
||||
"The notify type of the event.\n");
|
||||
printf("\n");
|
||||
printf("ack-required:\n"
|
||||
"The ack-required of the event (0=FALSE,1=TRUE).\n");
|
||||
printf("\n");
|
||||
printf("from-state:\n"
|
||||
"The from-state of the event.\n");
|
||||
printf("\n");
|
||||
printf("to-state:\n"
|
||||
"The to-state of the event.\n");
|
||||
printf("\n");
|
||||
printf("event-type\n"
|
||||
"The event-type of the event.\n");
|
||||
printf("\n");
|
||||
printf("--mac A\n"
|
||||
"Optional BACnet mac address."
|
||||
"Valid ranges are from 00 to FF (hex) for MS/TP or ARCNET,\n"
|
||||
"or an IP string with optional port number like 10.1.2.3:47808\n"
|
||||
"or an Ethernet MAC in hex like 00:21:70:7e:32:bb\n"
|
||||
"\n"
|
||||
"--dnet N\n"
|
||||
"Optional BACnet network number N for directed requests.\n"
|
||||
"Valid range is from 0 to 65535 where 0 is the local connection\n"
|
||||
"and 65535 is network broadcast.\n"
|
||||
"\n"
|
||||
"--dadr A\n"
|
||||
"Optional BACnet mac address on the destination BACnet network "
|
||||
"number.\n"
|
||||
"Valid ranges are from 00 to FF (hex) for MS/TP or ARCNET,\n"
|
||||
"or an IP string with optional port number like 10.1.2.3:47808\n"
|
||||
"or an Ethernet MAC in hex like 00:21:70:7e:32:bb\n"
|
||||
"\n");
|
||||
"Optional BACnet mac address."
|
||||
"Valid ranges are from 00 to FF (hex) for MS/TP or ARCNET,\n"
|
||||
"or an IP string with optional port number like 10.1.2.3:47808\n"
|
||||
"or an Ethernet MAC in hex like 00:21:70:7e:32:bb\n");
|
||||
printf("\n");
|
||||
printf("--dnet N\n"
|
||||
"Optional BACnet network number N for directed requests.\n"
|
||||
"Valid range is from 0 to 65535 where 0 is the local connection\n"
|
||||
"and 65535 is network broadcast.\n");
|
||||
printf("\n");
|
||||
printf("--dadr A\n"
|
||||
"Optional BACnet mac address on the destination BACnet network.\n"
|
||||
"Valid ranges are from 00 to FF (hex) for MS/TP or ARCNET,\n"
|
||||
"or an IP string with optional port number like 10.1.2.3:47808\n"
|
||||
"or an Ethernet MAC in hex like 00:21:70:7e:32:bb\n");
|
||||
printf("\n");
|
||||
(void)filename;
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
Reference in New Issue
Block a user