diff options
author | asn <asn@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2010-12-15 17:54:34 +0000 |
---|---|---|
committer | asn <asn@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2010-12-15 17:54:34 +0000 |
commit | fcf412569abe2307a3719343e3c9228f6365e5aa (patch) | |
tree | 49671b2128029df52503c76ec49a82c9b52f0e60 | |
parent | f59470bbcaa9ec65386ac23dbe82ee0847c3b15c (diff) | |
download | pki-fcf412569abe2307a3719343e3c9228f6365e5aa.tar.gz pki-fcf412569abe2307a3719343e3c9228f6365e5aa.tar.xz pki-fcf412569abe2307a3719343e3c9228f6365e5aa.zip |
bulkissuance: Fixed serveral build warnings.
Fixed brc #644056.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1631 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
-rw-r--r-- | pki/base/native-tools/src/bulkissuance/bulkissuance.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/pki/base/native-tools/src/bulkissuance/bulkissuance.c b/pki/base/native-tools/src/bulkissuance/bulkissuance.c index b6b921e3c..ec33e8a7a 100644 --- a/pki/base/native-tools/src/bulkissuance/bulkissuance.c +++ b/pki/base/native-tools/src/bulkissuance/bulkissuance.c @@ -242,10 +242,10 @@ my_GetClientAuthData(void * arg, if (chosenNickName) { cert = PK11_FindCertFromNickname(chosenNickName, proto_win); - FPRINTF(stderr," mygetclientauthdata - cert = %x\n",(unsigned int)cert); + FPRINTF(stderr," mygetclientauthdata - cert = %p\n", cert); if ( cert ) { privkey = PK11_FindKeyByAnyCert(cert, proto_win); - FPRINTF(stderr," mygetclientauthdata - privkey = %x\n",(unsigned int)privkey); + FPRINTF(stderr," mygetclientauthdata - privkey = %p\n", privkey); if ( privkey ) { rv = SECSuccess; } else { @@ -362,7 +362,8 @@ do_writes( /* PR_Shutdown(ssl_sock, PR_SHUTDOWN_SEND); */ } - FPRINTF(stderr, "do_writes exiting with (failure = %d)\n",sent<bigBuf.len == SECFailure); + FPRINTF(stderr, "do_writes exiting with (failure = %d)\n", + (sent < bigBuf.len) == SECFailure); return (sent < bigBuf.len) ? SECFailure : SECSuccess; } @@ -503,6 +504,7 @@ do_connect( return SECSuccess; } +#if 0 /* Returns IP address for hostname as PRUint32 in Host Byte Order. ** Since the value returned is an integer (not a string of bytes), ** it is inherently in Host Byte Order. @@ -541,6 +543,11 @@ client_main( { PRFileDesc *model_sock = NULL; int rv; + PRAddrInfo *ai; + void *iter; + PRNetAddr addr; + int family = PR_AF_INET; + FPRINTF(stderr, "port: %d\n", port); @@ -557,11 +564,6 @@ client_main( * Rifle through the values for the host */ - PRAddrInfo *ai; - void *iter; - PRNetAddr addr; - int family = PR_AF_INET; - ai = PR_GetAddrInfoByName(hostName, PR_AF_UNSPEC, PR_AI_ADDRCONFIG); if (ai) { FPRINTF( stderr, "addr='%s'\n", PR_GetCanonNameFromAddrInfo( ai ) ); @@ -672,7 +674,7 @@ createRequest(char *progName, char *path) int main(int argc, char **argv) { - char * dir = "."; + const char * dir = "."; char * hostName = NULL; char * nickName = NULL; char * progName = NULL; |