summaryrefslogtreecommitdiffstats
path: root/src/intrf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-03-06 19:38:48 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-03-06 19:38:48 +0100
commit22d825524dfd64368c55183b0dcad4b9048601d5 (patch)
treea0efe56d431fe34a14c5e8db701d4e07ecd9497a /src/intrf.c
parentc01909eefa4b438b3947bdea74d45a7a1b4ce2e0 (diff)
code cleanup, fix signed/unsigned warnings
Diffstat (limited to 'src/intrf.c')
-rw-r--r--src/intrf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intrf.c b/src/intrf.c
index 208bb19..f646757 100644
--- a/src/intrf.c
+++ b/src/intrf.c
@@ -95,7 +95,7 @@ int screen_buffer_add(const char *_format, ...)
/* log_trace("aff_intr_buffer_screen %d =>%s<=\n",intr_nbr_line,tmp_line); */
if(intr_nbr_line==MAX_LINES)
{
- log_warning("Buffer can't store more than %u lines.\n", MAX_LINES);
+ log_warning("Buffer can't store more than %d lines.\n", MAX_LINES);
intr_nbr_line++;
}
return 0;
@@ -147,7 +147,7 @@ const char *aff_part_aux(const unsigned int newline, const disk_t *disk_car, con
if((newline&AFF_PART_ORDER)==AFF_PART_ORDER)
{
if((partition->status!=STATUS_EXT_IN_EXT) && (partition->order!=NO_ORDER))
- pos+=snprintf(&msg[pos],sizeof(msg)-pos-1,"%2d ", partition->order);
+ pos+=snprintf(&msg[pos],sizeof(msg)-pos-1,"%2u ", partition->order);
else
pos+=snprintf(&msg[pos],sizeof(msg)-pos-1," ");
}