ttsnoop: resolve some compiler warnings
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
* ** DELETE THE GENERATED COMMENTS! **
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
@@ -403,7 +404,7 @@ choiceOkayed(
|
||||
}
|
||||
ival = 0;
|
||||
sscanf( text, "%i", &ival );
|
||||
msg = (Tt_message)ival;
|
||||
msg = (Tt_message) (intptr_t) ival;
|
||||
if (DtTtIndex( DTTT_MESSAGE, msg ) < 0) {
|
||||
return;
|
||||
}
|
||||
@@ -438,7 +439,7 @@ choiceOkayed(
|
||||
}
|
||||
ival = 0;
|
||||
sscanf( text, "%i", &ival );
|
||||
pat = (Tt_pattern)ival;
|
||||
pat = (Tt_pattern) (intptr_t) ival;
|
||||
if (DtTtIndex( DTTT_PATTERN, pat ) < 0) {
|
||||
return;
|
||||
}
|
||||
@@ -472,7 +473,7 @@ choiceOkayed(
|
||||
}
|
||||
ival = 0;
|
||||
sscanf( text, "%i", &ival );
|
||||
pats = (Tt_pattern *)ival;
|
||||
pats = (Tt_pattern *) (intptr_t) ival;
|
||||
if (DtTtIndex( DTTT_DTSESSION, pats ) < 0) {
|
||||
return;
|
||||
}
|
||||
@@ -498,7 +499,7 @@ choiceOkayed(
|
||||
}
|
||||
ival = 0;
|
||||
sscanf( text, "%i", &ival );
|
||||
pats = (Tt_pattern *)ival;
|
||||
pats = (Tt_pattern *) (intptr_t) ival;
|
||||
if (DtTtIndex( DTTT_DTFILE, pats ) < 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user