Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/sbin/veriexecctl Pull up revision 1.6 (requested by elad ...



details:   https://anonhg.NetBSD.org/src/rev/905b276c09ad
branches:  netbsd-3
changeset: 576108:905b276c09ad
user:      tron <tron%NetBSD.org@localhost>
date:      Fri Jun 10 14:51:51 2005 +0000

description:
Pull up revision 1.6 (requested by elad in ticket #389):
Make this compile again after the latest overhaul.
Use -I${.CURDIR} instead of -I. to support placement of objects elsewhere.
Make sure arguments to ctype functions are unsigned char by changing the
type of one function argument.
Fix "local declaration shadows global" warnings by renaming variables.
Fix printing of size_t variable to use %zu format instead of %u.

diffstat:

 sbin/veriexecctl/Makefile            |  4 ++--
 sbin/veriexecctl/veriexecctl_parse.y |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 351578577940 -r 905b276c09ad sbin/veriexecctl/Makefile
--- a/sbin/veriexecctl/Makefile Fri Jun 10 14:51:44 2005 +0000
+++ b/sbin/veriexecctl/Makefile Fri Jun 10 14:51:51 2005 +0000
@@ -1,11 +1,11 @@
-#      $NetBSD: Makefile,v 1.4.2.1 2005/06/10 14:47:36 tron Exp $
+#      $NetBSD: Makefile,v 1.4.2.2 2005/06/10 14:51:51 tron Exp $
 
 PROG=  veriexecctl
 MAN=   veriexec.4 veriexecctl.8
 SRCS=  veriexecctl_parse.y veriexecctl_conf.l veriexecctl.c
 
 YHEADER=       1
-CPPFLAGS+=     -I.
+CPPFLAGS+=     -I${.CURDIR}
 DPADD+=                ${LIBL}
 LDADD+=                -ll
 
diff -r 351578577940 -r 905b276c09ad sbin/veriexecctl/veriexecctl_parse.y
--- a/sbin/veriexecctl/veriexecctl_parse.y      Fri Jun 10 14:51:44 2005 +0000
+++ b/sbin/veriexecctl/veriexecctl_parse.y      Fri Jun 10 14:51:51 2005 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: veriexecctl_parse.y,v 1.4.2.1 2005/06/10 14:47:36 tron Exp $   */
+/*     $NetBSD: veriexecctl_parse.y,v 1.4.2.2 2005/06/10 14:51:51 tron Exp $   */
 
 /*-
  * Copyright 2005 Elad Efrat <elad%bsd.org.il@localhost>
@@ -197,7 +197,7 @@
  * by "out".  Returns the number of bytes converted or -1 if the conversion
  * fails.
  */
-int convert(char *fp, u_char *out) {
+int convert(u_char *fp, u_char *out) {
         int i, value, error, count;
 
        count = strlen(fp);



Home | Main Index | Thread Index | Old Index