Watch one's "p"s and "q"s and fix cast aspersions on alpha ("warning: field

precision should have type 'int', but argument 2 has type 'long int'")
This commit is contained in:
dogcow 2009-04-05 12:15:07 +00:00
parent 7b61bfdc7c
commit f0f15c8b0d
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: spec.c,v 1.70 2009/04/04 21:49:49 apb Exp $ */ /* $NetBSD: spec.c,v 1.71 2009/04/05 12:15:07 dogcow Exp $ */
/*- /*-
* Copyright (c) 1989, 1993 * Copyright (c) 1989, 1993
@ -67,7 +67,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)spec.c 8.2 (Berkeley) 4/28/95"; static char sccsid[] = "@(#)spec.c 8.2 (Berkeley) 4/28/95";
#else #else
__RCSID("$NetBSD: spec.c,v 1.70 2009/04/04 21:49:49 apb Exp $"); __RCSID("$NetBSD: spec.c,v 1.71 2009/04/05 12:15:07 dogcow Exp $");
#endif #endif
#endif /* not lint */ #endif /* not lint */
@ -367,7 +367,7 @@ dump_nodes(const char *dir, NODE *root, int pathlast)
q = p + strlen(p); q = p + strlen(p);
while(q > p && q[-1] == ',') while(q > p && q[-1] == ',')
q--; q--;
printf("tags=%.*s ", q - p, p); printf("tags=%.*s ", (int)(q - p), p);
} }
puts(pathlast ? vispath(path) : ""); puts(pathlast ? vispath(path) : "");