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:
+40
-42
@@ -171,54 +171,52 @@ static void print_usage(char *filename)
|
||||
static void print_help(char *filename)
|
||||
{
|
||||
printf("Send BACnet AcknowledgedAlarm, 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"
|
||||
"event-object-type:\n"
|
||||
"notification is intended.\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"
|
||||
"event-state-acked:\n"
|
||||
"The event-state that for this alarm acknowledge.\n"
|
||||
"\n"
|
||||
"event-time-stamp:\n"
|
||||
"The time-stamp of the event.\n"
|
||||
"\n"
|
||||
"ack-source-name\n"
|
||||
"The source name of the alarm acknowledge.\n"
|
||||
"\n"
|
||||
"ack-time-stamp\n"
|
||||
"The time-stamp of the alarm acknowledge.\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("event-state-acked:\n"
|
||||
"The event-state that for this alarm acknowledge.\n");
|
||||
printf("\n");
|
||||
printf("event-time-stamp:\n"
|
||||
"The time-stamp of the event.\n");
|
||||
printf("\n");
|
||||
printf("ack-source-name\n"
|
||||
"The source name of the alarm acknowledge.\n");
|
||||
printf("\n");
|
||||
printf("ack-time-stamp\n"
|
||||
"The time-stamp of the alarm acknowledge.\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");
|
||||
(void)filename;
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
Reference in New Issue
Block a user