Passing 0 to krb5_build_principal requires a cast
authorKen Raeburn <raeburn@mit.edu>
Tue, 3 Jun 2008 00:07:43 +0000 (00:07 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 3 Jun 2008 00:07:43 +0000 (00:07 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20355 dc483132-0cff-0310-8789-dd5450dbe970

src/clients/kpasswd/ksetpwd.c

index 2eec397944315e244a356210db8f126fd4ac5a2b..41500dd03729e38f2497de435eb7b009e1b873d4 100644 (file)
@@ -61,7 +61,7 @@ static kbrccache_t userinitcontext(
        if( kres )
                goto return_error;
        if( domain )
-               kres = krb5_build_principal( kcontext, &kme, strlen(domain), domain, user, 0 );
+               kres = krb5_build_principal( kcontext, &kme, strlen(domain), domain, user, (char *) 0 );
        else
                kres = krb5_parse_name( kcontext, user, &kme );
        if( kres )