ensure sizes of long and unsigned long are the same #ifdef DEBUG
This commit is contained in:
		
							
								
								
									
										5
									
								
								misc.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								misc.c
									
									
									
									
									
								
							| @@ -6,7 +6,7 @@ | |||||||
| #include <grp.h> | #include <grp.h> | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| __RCSID("$MirOS: src/bin/mksh/misc.c,v 1.93 2008/12/13 17:02:16 tg Exp $"); | __RCSID("$MirOS: src/bin/mksh/misc.c,v 1.94 2008/12/17 19:37:08 tg Exp $"); | ||||||
|  |  | ||||||
| #undef USE_CHVT | #undef USE_CHVT | ||||||
| #if defined(TIOCSCTTY) && !defined(MKSH_SMALL) | #if defined(TIOCSCTTY) && !defined(MKSH_SMALL) | ||||||
| @@ -1371,6 +1371,9 @@ chvt(const char *fn) | |||||||
| #endif | #endif | ||||||
|  |  | ||||||
| #ifdef DEBUG | #ifdef DEBUG | ||||||
|  |  | ||||||
|  | char longsizes_are_okay[sizeof (long) == sizeof (unsigned long) ? 1 : -1]; | ||||||
|  |  | ||||||
| char * | char * | ||||||
| strchr(char *p, int ch) | strchr(char *p, int ch) | ||||||
| { | { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user