print some size_t correctly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10507 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
				
			|||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (c) 1997 - 2000 Kungliga Tekniska H<>gskolan
 | 
					 * Copyright (c) 1997 - 2001 Kungliga Tekniska H<>gskolan
 | 
				
			||||||
 * (Royal Institute of Technology, Stockholm, Sweden). 
 | 
					 * (Royal Institute of Technology, Stockholm, Sweden). 
 | 
				
			||||||
 * All rights reserved. 
 | 
					 * All rights reserved. 
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
@@ -147,7 +147,7 @@ loop (unsigned char *buf, size_t len, int indent)
 | 
				
			|||||||
		if (ret)
 | 
							if (ret)
 | 
				
			||||||
		    errx (1, "der_get_octet_string: %s",
 | 
							    errx (1, "der_get_octet_string: %s",
 | 
				
			||||||
			  com_right (et_list, ret));
 | 
								  com_right (et_list, ret));
 | 
				
			||||||
		printf ("(length %d), ", length);
 | 
							printf ("(length %lu), ", (unsigned long)length);
 | 
				
			||||||
		uc = (unsigned char *)str.data;
 | 
							uc = (unsigned char *)str.data;
 | 
				
			||||||
		for (i = 0; i < 16; ++i)
 | 
							for (i = 0; i < 16; ++i)
 | 
				
			||||||
		    printf ("%02x", uc[i]);
 | 
							    printf ("%02x", uc[i]);
 | 
				
			||||||
@@ -168,7 +168,7 @@ loop (unsigned char *buf, size_t len, int indent)
 | 
				
			|||||||
		break;
 | 
							break;
 | 
				
			||||||
	    }
 | 
						    }
 | 
				
			||||||
	    default :
 | 
						    default :
 | 
				
			||||||
		printf ("%d bytes\n", length);
 | 
							printf ("%lu bytes\n", (unsigned long)length);
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
	    }
 | 
						    }
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user