pkgsrc/net/tcl-scotty/patches/patch-tnm_snmp_tnmAsn1.h
he 5b73f85427 Make tcl-scotty build with minimal warnings and install again.
This change is the result of a large sweep triggered by the new
Tcl which has const'ified many interfaces -- this follows suit with
many corresponding changes internally in scotty => lots of new
patches.

Also, change so as to not access interp->errorLine and
interp->result directly, use the accessor functions instead,
and turn off the corresponding compatibility defines.

The old patch files have been renamed and expanded, the new
scheme for naming patch files is used.

Only minimal functionality testing is done, but what has been
done shows that it basically works again.

PKGREVISION bumped.
2014-03-05 13:52:29 +00:00

30 lines
831 B
C

$NetBSD: patch-tnm_snmp_tnmAsn1.h,v 1.1 2014/03/05 13:52:29 he Exp $
Constify.
--- tnm/snmp/tnmAsn1.h.orig 2014-03-05 10:06:28.000000000 +0000
+++ tnm/snmp/tnmAsn1.h
@@ -85,19 +85,19 @@ typedef u_int Tnm_Oid;
*/
EXTERN char*
-Tnm_OidToStr _ANSI_ARGS_((Tnm_Oid *oid, int len));
+Tnm_OidToStr _ANSI_ARGS_((const Tnm_Oid *oid, int len));
EXTERN Tnm_Oid*
-Tnm_StrToOid _ANSI_ARGS_((char *str, int *len));
+Tnm_StrToOid _ANSI_ARGS_((const char *str, int *len));
EXTERN Tnm_Oid*
Tnm_OidDup _ANSI_ARGS_((int *buflen, Tnm_Oid *oid, int oidLen));
EXTERN int
-Tnm_IsOid _ANSI_ARGS_((char *str));
+Tnm_IsOid _ANSI_ARGS_((const char *str));
EXTERN char*
-Tnm_HexToOid _ANSI_ARGS_((char *str));
+Tnm_HexToOid _ANSI_ARGS_((const char *str));
/*
*----------------------------------------------------------------