Fix most of the following classes of warnings in the ToolTalk libraries:

- Const strings referenced by non-const variables.
- Incorrect format specifers for printing addresses
- Unused variables
- Signed comparison to unsigned

Also fix an incorrect enumeration value in a switch statement.
This commit is contained in:
Chris Wareham
2012-08-14 12:43:44 -06:00
committed by Jon Trulson
parent d6b6353f95
commit e738704385
29 changed files with 51 additions and 57 deletions
+3 -2
View File
@@ -63,10 +63,11 @@ void *_tt_error_pointer(Tt_status s);
// loop iteration. All this in the name of coding efficiency.
//
Tt_status _Tt_audit::
entry(char *argskey, _Tt_entry_pt func, ...)
entry(const char *argskey, _Tt_entry_pt func, ...)
{
va_list ap;
char c, *preview, *cp;
char c, *cp;
const char *preview;
int num_args = strlen(argskey);
Tt_message m;
_Tt_c_message_ptr msg;