memset(fsm->sufbuf, 0, sizeof(fsm->sufbuf));
if (fsm->goal == FSM_PKGINSTALL) {
- if (ts && rpmtsGetTid(ts) != -1)
+ if (ts && rpmtsGetTid(ts) != (rpm_tid_t)-1)
sprintf(fsm->sufbuf, ";%08x", (unsigned)rpmtsGetTid(ts));
}
rpm_tid_t rpmtsGetTid(rpmts ts)
{
- rpm_tid_t tid = -1; /* XXX -1 is time(2) error return. */
+ rpm_tid_t tid = (rpm_tid_t)-1; /* XXX -1 is time(2) error return. */
if (ts != NULL) {
tid = ts->tid;
}
rpm_tid_t rpmtsSetTid(rpmts ts, rpm_tid_t tid)
{
- rpm_tid_t otid = -1; /* XXX -1 is time(2) error return. */
+ rpm_tid_t otid = (rpm_tid_t)-1; /* XXX -1 is time(2) error return. */
if (ts != NULL) {
otid = ts->tid;
ts->tid = tid;
typedef uint32_t rpm_color_t;
typedef uint32_t rpm_flag_t;
-typedef int32_t rpm_tid_t;
+typedef uint32_t rpm_tid_t;
/** @} */
/** \ingroup rpmtypes