Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: signed/unsigned disklabel



On Thu, 06 Jan 2011, Patrick Welche wrote:
> --- main.c    5 Jan 2010 15:45:26 -0000       1.22
> +++ main.c    6 Jan 2011 17:54:37 -0000
> @@ -1157,8 +1157,8 @@
>               if (pp->p_size) {
>                       char c = 'a' + i;
>                       (void) fprintf(f, "\\\n\t:");
> -                     (void) fprintf(f, "p%c#%d:", c, pp->p_size);
> -                     (void) fprintf(f, "o%c#%d:", c, pp->p_offset);
> +                     (void) fprintf(f, "p%c#%u:", c, pp->p_size);
> +                     (void) fprintf(f, "o%c#%u:", c, pp->p_offset);
>                       if (pp->p_fstype != FS_UNUSED) {
>                               if ((unsigned) pp->p_fstype < FSMAXTYPES)
>                                       (void) fprintf(f, "t%c=%s:", c,

Thank you!  But those should be PRIu32, and there were many similar
problems in src/sbin/disklabel.  I hope Christos and I have fixed
this now.

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index