+/* $OpenLDAP$ */
/*
* Copyright (c) 1990 Regents of the University of Michigan.
* All rights reserved.
if ( x == NULL ) {
x = "?";
- } else if ( isdigit ( *x ) ) {
+ } else if ( isdigit ( (unsigned char) *x ) ) {
sprintf ( key, "OID.%s", x );
return;
} else if (strcasecmp(x,"commonName")==0) {
strcpy ( key, x );
}
-#define SEPARATOR(c) (c == ',' || c == ';')
-#define SPACE(c) (c == ' ' || c == '\n')
+#define SEPARATOR(c) ((c) == ',' || (c) == ';')
+#define SPACE(c) ((c) == ' ' || (c) == '\n')
int
dn_print_real(
len = ps_get_abs( pe );
Debug( LDAP_DEBUG_ARGS, "put_photo_val: ber_printf %d bytes\n",
len, 0, 0 );
- if (( phber = der_alloc()) == NULLBER ) {
+ if (( phber = der_alloc()) == NULL ) {
Debug( LDAP_DEBUG_ANY, "der_alloc failed\n", 0, 0, 0 );
return( -1 );
}
de_t61( char *s, int t61mark )
{
char *next = s;
- int c, hex;
+ unsigned char c;
+ unsigned int hex;
while ( *s ) {
switch ( *s ) {