On 2/22/07, Simon 'corecode' Schubert <[EMAIL PROTECTED]> wrote:
ejc wrote:
>  #if defined (__DragonFly__)
> +#if __DragonFly_version >= 190000
> +     strlcpy(ps->name,p.kp_comm ? p.kp_comm : "????",
> +             sizeof(ps->name));

that ternary isn't needed anymore, kp_comm is guaranteed to exist.

> +#if __DragonFly_version >= 190000
> +     strcpy(ps->status,(p.kp_stat>=1)&&(p.kp_stat<=5)? 
statuses[p.kp_stat-1]:"????");

stats changed, so you'd also need a new "statuses" array I guess.

Thanks for the critique.  I'll work on it tomorrow.

Eric

Reply via email to