File 7211-i-snmp-Fixed-function-spec.patch of Package erlang

From 2b2b3f8659c7c54375ef7b9ec7c4ca0c8d044c62 Mon Sep 17 00:00:00 2001
From: Micael Karlberg <bmk@erlang.org>
Date: Mon, 31 Mar 2025 16:21:01 +0200
Subject: [PATCH] i[snmp] Fixed function spec

Fixed spec for function 'table_func'.
For argument Op; 'next' should have been 'get_next'.

OTP-19568 (ERIERL-1211)
---
 lib/snmp/src/agent/snmp_generic.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/snmp/src/agent/snmp_generic.erl b/lib/snmp/src/agent/snmp_generic.erl
index 5adab4d477..d7534ee9f5 100644
--- a/lib/snmp/src/agent/snmp_generic.erl
+++ b/lib/snmp/src/agent/snmp_generic.erl
@@ -1,7 +1,7 @@
 %%
 %% %CopyrightBegin%
 %% 
-%% Copyright Ericsson AB 1996-2024. All Rights Reserved.
+%% Copyright Ericsson AB 1996-2025. All Rights Reserved.
 %% 
 %% Licensed under the Apache License, Version 2.0 (the "License");
 %% you may not use this file except in compliance with the License.
@@ -519,7 +519,7 @@ table_func(Op, NameDb) ->
 
 
 -spec table_func(Op, RowIndex, Cols, NameDb) -> Return when
-      Op       :: get | next | is_set_ok | set | undo,
+      Op       :: get | get_next | is_set_ok | set | undo,
       RowIndex :: snmp:row_index(),
       Cols     :: columns(),
       NameDb   :: snmpa:name_db(),
-- 
2.43.0

openSUSE Build Service is sponsored by