profile_t sprofile;
char dbname[128];
- sprintf(dbname, "temp_%d", getpid());
+ sprintf(dbname, "temp_%d", (int) getpid());
sprofile = kcontext->profile;
kcontext->profile = (profile_t) NULL;
if (!(kret = ser_data(verbose, "> Context with no profile",
*/
memset(&aent, 0, sizeof(aent));
aent.magic = KV5M_AUTHENTICATOR;
- sprintf(clname, "help/me/%d@this.is.a.test", getpid());
+ sprintf(clname, "help/me/%d@this.is.a.test", (int) getpid());
actx->authentp = &aent;
if (!(kret = krb5_parse_name(kcontext, clname,
&aent.client)) &&
krb5_principal principal;
extern krb5_cc_ops krb5_scc_ops;
- sprintf(ccname, "temp_cc_%d", getpid());
+ sprintf(ccname, "temp_cc_%d", (int) getpid());
sprintf(princname, "zowie%d/instance%d@this.is.a.test",
- getpid(), getpid());
+ (int) getpid(), (int) getpid());
if (!(kret = krb5_cc_resolve(kcontext, ccname, &ccache)) &&
!(kret = ser_data(verbose, "> Resolved default ccache",
(krb5_pointer) ccache, KV5M_CCACHE)) &&
(krb5_pointer) ccache, KV5M_CCACHE)) &&
!(kret = krb5_cc_destroy(kcontext, ccache))) {
krb5_free_principal(kcontext, principal);
- sprintf(ccname, "FILE:temp_cc_%d", getpid());
+ sprintf(ccname, "FILE:temp_cc_%d", (int) getpid());
sprintf(princname, "xxx%d/i%d@this.is.a.test",
- getpid(), getpid());
+ (int) getpid(), (int) getpid());
if (!(kret = krb5_cc_resolve(kcontext, ccname, &ccache)) &&
!(kret = ser_data(verbose, "> Resolved FILE ccache",
(krb5_pointer) ccache, KV5M_CCACHE)) &&
(krb5_pointer) ccache, KV5M_CCACHE)) &&
!(kret = krb5_cc_destroy(kcontext, ccache))) {
krb5_free_principal(kcontext, principal);
- sprintf(ccname, "STDIO:temp_cc_%d", getpid());
+ sprintf(ccname, "STDIO:temp_cc_%d", (int) getpid());
sprintf(princname, "xxx%d/i%d@this.is.a.test",
- getpid(), getpid());
+ (int) getpid(), (int) getpid());
if ((kret = krb5_cc_resolve(kcontext, ccname, &ccache)))
kret = krb5_cc_register(kcontext, &krb5_scc_ops, 1);
if (!kret &&
krb5_keytab keytab;
extern krb5_kt_ops krb5_ktf_writable_ops;
- sprintf(ccname, "temp_kt_%d", getpid());
+ sprintf(ccname, "temp_kt_%d", (int) getpid());
if (!(kret = krb5_kt_resolve(kcontext, ccname, &keytab)) &&
!(kret = ser_data(verbose, "> Resolved default keytab",
(krb5_pointer) keytab, KV5M_KEYTAB)) &&
!(kret = krb5_kt_close(kcontext, keytab))) {
- sprintf(ccname, "FILE:temp_kt_%d", getpid());
+ sprintf(ccname, "FILE:temp_kt_%d", (int) getpid());
if (!(kret = krb5_kt_resolve(kcontext, ccname, &keytab)) &&
!(kret = ser_data(verbose, "> Resolved FILE keytab",
(krb5_pointer) keytab, KV5M_KEYTAB)) &&
!(kret = krb5_kt_close(kcontext, keytab))) {
- sprintf(ccname, "WRFILE:temp_kt_%d", getpid());
+ sprintf(ccname, "WRFILE:temp_kt_%d", (int) getpid());
if ((kret = krb5_kt_resolve(kcontext, ccname, &keytab)))
kret = krb5_kt_register(kcontext, &krb5_ktf_writable_ops);
if (!kret &&
char rcname[128];
krb5_rcache rcache;
- sprintf(rcname, "dfl:temp_rc_%d", getpid());
+ sprintf(rcname, "dfl:temp_rc_%d", (int) getpid());
if (!(kret = krb5_rc_resolve_full(kcontext, &rcache, rcname)) &&
!(kret = ser_data(verbose, "> Resolved FILE rcache",
(krb5_pointer) rcache, KV5M_RCACHE)) &&
krb5_principal princ;
char pname[1024];
- sprintf(pname, "the/quick/brown/fox/jumped/over/the/lazy/dog/%d@this.is.a.test", getpid());
+ sprintf(pname, "the/quick/brown/fox/jumped/over/the/lazy/dog/%d@this.is.a.test", (int) getpid());
if (!(kret = krb5_parse_name(kcontext, pname, &princ))) {
if (!(kret = ser_data(verbose, "> Principal",
(krb5_pointer) princ, KV5M_PRINCIPAL))) {