Re: %j for printf(9)

Dag-Erling Smorgrav <[email protected]>
Newsgroups gmane.os.freebsd.devel.audit
Message-ID <[email protected]>
Bruce, does this look OK?

fetch_nosign:
                        if (jflag)
                                num = va_arg(ap, uintmax_t);
                        else if (qflag)
                                num = va_arg(ap, u_quad_t);
                        else if (lflag)
                                num = va_arg(ap, u_long);
                        else
                                num = va_arg(ap, u_int);
                        goto nosign;
fetch_number:
                        if (jflag)
                                num = va_arg(ap, intmax_t);
                        else if (qflag)
                                num = sign ? (uintmax_t)va_arg(ap, quad_t) :
                                    va_arg(ap, u_quad_t);
                        else if (lflag)
                                num = sign ? (uintmax_t)va_arg(ap, long) :
                                    va_arg(ap, u_long);
                        else
                                num = sign ? (uintmax_t)va_arg(ap, int) :
                                    va_arg(ap, u_int);
                        goto number;

DES
-- 
Dag-Erling Smorgrav - [email protected]

To Unsubscribe: send mail to [email protected]
with "unsubscribe freebsd-audit" in the body of the message
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.