diff options
author | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
commit | cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch) | |
tree | e0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/libsec/port/x509.c | |
parent | 226d80b8213821af0cbf092d1507c52b504fd368 (diff) | |
download | plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2 plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip |
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/libsec/port/x509.c')
-rw-r--r-- | src/libsec/port/x509.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsec/port/x509.c b/src/libsec/port/x509.c index f204ca6f..60b3d073 100644 --- a/src/libsec/port/x509.c +++ b/src/libsec/port/x509.c @@ -575,7 +575,7 @@ int_decode(uchar** pp, uchar* pend, int count, int unsgned, int* pint) err = ASN_ETOOBIG; else { if(!unsgned && count > 0 && count < 4 && (*p&0x80)) - num = -1; // set all bits, initially + num = -1; /* set all bits, initially */ while(count--) num = (num << 8)|(*p++); } @@ -2141,7 +2141,7 @@ X509toRSApub(uchar *cert, int ncert, char *name, int nname) if(name != nil && c->subject != nil){ e = strchr(c->subject, ','); if(e != nil) - *e = 0; // take just CN part of Distinguished Name + *e = 0; /* take just CN part of Distinguished Name */ strncpy(name, c->subject, nname); } pk = decode_rsapubkey(c->publickey); |