Forráskód Böngészése

snmpstats: typos a/an

Дилян Палаузов 2 éve
szülő
commit
14aeceffeb

+ 2 - 2
src/modules/snmpstats/README

@@ -374,7 +374,7 @@ modparam("snmpstats", "MsgQueueMajorThreshold", 5000)
 
    The SNMPStats module monitors the number of active dialogs. If the
    number of active dialogs exceeds a minor threshold, the SNMPStats
-   module will send out an kamailioDialogLimitMinorEvent trap to signal
+   module will send out a kamailioDialogLimitMinorEvent trap to signal
    that an alarm condition has occurred. The minor threshold is set with
    the dlg_minor_threshold parameter.
 
@@ -390,7 +390,7 @@ modparam("snmpstats", "MsgQueueMajorThreshold", 5000)
 
    The SNMPStats module monitors the number of active dialogs. If the
    number of active dialogs exceeds a major threshold, the SNMPStats
-   module will send out an kamailioDialogLimitMajorEvent trap to signal
+   module will send out a kamailioDialogLimitMajorEvent trap to signal
    that an alarm condition has occurred. The major threshold is set with
    the dlg_major_threshold parameter.
 

+ 1 - 1
src/modules/snmpstats/alarm_checks.c

@@ -81,7 +81,7 @@ int check_dialog_alarm(int threshold_to_compare_to)
 	return 0;
 }
 
-/*! This function will be called periodically from an Kamailio timer.  The first
+/*! This function will be called periodically from a Kamailio timer.  The first
  * time it is called, it will query KAMAILIO-MIB for configured thresholds.
  */
 void run_alarm_check(unsigned int ticks, void *attr)

+ 1 - 1
src/modules/snmpstats/alarm_checks.h

@@ -45,7 +45,7 @@ int check_msg_queue_alarm(int threshold_to_compare_to);
  * otherwise. */
 int check_dialog_alarm(int threshold_to_compare_to);
 
-/*! This function will be called periodically from an Kamailio timer.  The first
+/*! This function will be called periodically from a Kamailio timer.  The first
  * time it is called, it will query KAMAILIO-MIB for configured thresholds.
  */
 void run_alarm_check(unsigned int ticks, void *attr);

+ 4 - 4
src/modules/snmpstats/doc/snmpstats_admin.xml

@@ -295,7 +295,7 @@ modparam("snmpstats", "sipEntityType", "proxyServer")
 		<para>
 		The SNMPStats module monitors the number of bytes waiting to be consumed by 
 		Kamailio.  If the number of bytes waiting to be consumed exceeds a minor
-		threshold, the SNMPStats module will send out an kamailioMsgQueueDepthMinorEvent
+		threshold, the SNMPStats module will send out a kamailioMsgQueueDepthMinorEvent
 		trap to signal that an alarm condition has occurred.  The minor threshold is set
 		with the MsgQueueMinorThreshold parameter.  
 		</para>
@@ -320,7 +320,7 @@ modparam("snmpstats", "MsgQueueMinorThreshold", 2000)
 		<para>
 		The SNMPStats module monitors the number of bytes waiting to be consumed by 
 		Kamailio.  If the number of bytes waiting to be consumed exceeds a major
-		threshold, the SNMPStats module will send out an kamailioMsgQueueDepthMajorEvent
+		threshold, the SNMPStats module will send out a kamailioMsgQueueDepthMajorEvent
 		trap to signal that an alarm condition has occurred.  The major threshold is set
 		with the MsgQueueMajorThreshold parameter.  
 		</para>
@@ -345,7 +345,7 @@ modparam("snmpstats", "MsgQueueMajorThreshold", 5000)
 		<para>
 		The SNMPStats module monitors the number of active dialogs.  If the number of
 		active dialogs exceeds a minor threshold, the SNMPStats module will send out 
-		an kamailioDialogLimitMinorEvent trap to signal that an alarm condition has 
+		a kamailioDialogLimitMinorEvent trap to signal that an alarm condition has 
 		occurred.  The minor threshold is set with the dlg_minor_threshold parameter.  
 		</para>
 
@@ -369,7 +369,7 @@ modparam("snmpstats", "MsgQueueMajorThreshold", 5000)
 		<para>
 		The SNMPStats module monitors the number of active dialogs.  If the number of
 		active dialogs exceeds a major threshold, the SNMPStats module will send out 
-		an kamailioDialogLimitMajorEvent trap to signal that an alarm condition has 
+		a kamailioDialogLimitMajorEvent trap to signal that an alarm condition has 
 		occurred.  The major threshold is set with the dlg_major_threshold parameter.  
 		</para>
 

+ 1 - 1
src/modules/snmpstats/hashTable.c

@@ -221,7 +221,7 @@ void deleteUser(hashSlot_t *theTable, char *aor, int hashTableSize)
 }
 
 
-/*! Returns a aorToIndexStruct_t, holding the given 'userIndex' and 'aor'.  The
+/*! Returns an aorToIndexStruct_t, holding the given 'userIndex' and 'aor'.  The
  * structure is used to map between the "aor" (Kamailio's way of indexing
  * users/contacts), and the SNMPStats user and contact integer indexes.  
  *

+ 1 - 1
src/modules/snmpstats/hashTable.h

@@ -126,7 +126,7 @@ typedef struct hashSlot
 * More detailed function definitions can be found in hashTable.c   */
 
 
-/*! Returns a aorToIndexStruct_t, holding the given 'userIndex' and 'aor'.  The
+/*! Returns an aorToIndexStruct_t, holding the given 'userIndex' and 'aor'.  The
  * structure is used to map between the "aor" (Kamailio's way of indexing
  * users/contacts), and the SNMPStats user and contact integer indexes.  
  *

+ 4 - 4
src/modules/snmpstats/kamailioNet.c

@@ -300,7 +300,7 @@ int handle_kamailioNetTcpConnEstablished(netsnmp_mib_handler *handler,
 	/* We are never called for a GETNEXT if it's registered as a
        "instance", as it's "magically" handled for us.  */
 
-	/* a instance handler also only hands us one request at a time, so
+	/* an instance handler also only hands us one request at a time, so
        we don't need to loop over a list of requests; we'll only get one. */
 
 	int datafield = get_statistic("established");
@@ -451,7 +451,7 @@ int handle_kamailioNetTcpConnReject(netsnmp_mib_handler *handler,
 	/* We are never called for a GETNEXT if it's registered as a
        "instance", as it's "magically" handled for us.  */
 
-	/* a instance handler also only hands us one request at a time, so
+	/* an instance handler also only hands us one request at a time, so
        we don't need to loop over a list of requests; we'll only get one. */
 	int datafield = get_statistic("local_reject");
 
@@ -480,7 +480,7 @@ int handle_kamailioNetTcpEnabled(netsnmp_mib_handler *handler,
 	/* We are never called for a GETNEXT if it's registered as a
        "instance", as it's "magically" handled for us.  */
 
-	/* a instance handler also only hands us one request at a time, so
+	/* an instance handler also only hands us one request at a time, so
        we don't need to loop over a list of requests; we'll only get one. */
 	int enabled = (tcp_disable == 0);
 
@@ -543,7 +543,7 @@ int handle_kamailioNetTcpAsync(netsnmp_mib_handler *handler,
 	/* We are never called for a GETNEXT if it's registered as a
        "instance", as it's "magically" handled for us.  */
 
-	/* a instance handler also only hands us one request at a time, so
+	/* an instance handler also only hands us one request at a time, so
        we don't need to loop over a list of requests; we'll only get one. */
 
 	switch(reqinfo->mode) {

+ 1 - 1
src/modules/snmpstats/mibs/KAMAILIO-TC

@@ -304,7 +304,7 @@ X731AvailabilityStatus ::= TEXTUAL-CONVENTION
 		A value of not installed means the resource is not present or
 		is incomplete. The operational state should be disabled.
 
-		A value of log full indicates that a a log full condition
+		A value of log full indicates that a log full condition
 		exists."
 
 	SYNTAX BITS {

+ 4 - 4
src/modules/snmpstats/snmpMIBNotifications.c

@@ -39,7 +39,7 @@
 static oid snmptrap_oid[] = {1, 3, 6, 1, 6, 3, 1, 1, 4, 1, 0};
 
 /* 
- * Sends off an kamailioMsgQueueDepthMinorEvent trap to the master agent,
+ * Sends off a kamailioMsgQueueDepthMinorEvent trap to the master agent,
  * assigning the following variable bindings:
  *
  *  - kamailioMsgQueueDepth          = msgQueueDepth
@@ -78,7 +78,7 @@ int send_kamailioMsgQueueDepthMinorEvent_trap(
 }
 
 /*
- * Sends off an kamailioMsgQueueDepthMajorEvent trap to the master agent,
+ * Sends off a kamailioMsgQueueDepthMajorEvent trap to the master agent,
  * assigning the following variable bindings:
  *
  *  - kamailioMsgQueueDepth          = msgQueueDepth
@@ -118,7 +118,7 @@ int send_kamailioMsgQueueDepthMajorEvent_trap(
 
 
 /*
- * Sends off an kamailioDialogLimitMinorEvent trap to the master agent,
+ * Sends off a kamailioDialogLimitMinorEvent trap to the master agent,
  * assigning the following variable bindings:
  *
  *  - kamailioCurNumDialogs             = numDialogs
@@ -156,7 +156,7 @@ int send_kamailioDialogLimitMinorEvent_trap(int numDialogs, int threshold)
 
 
 /*
- * Sends off an kamailioDialogLimitMinorEvent trap to the master agent,
+ * Sends off a kamailioDialogLimitMinorEvent trap to the master agent,
  * assigning the following variable bindings:
  *
  *  - kamailioCurNumDialogs             = numDialogs

+ 4 - 4
src/modules/snmpstats/snmpMIBNotifications.h

@@ -34,7 +34,7 @@
 
 
 /* 
- * Sends off an kamailioMsgQueueDepthMinorEvent trap to the master agent,
+ * Sends off a kamailioMsgQueueDepthMinorEvent trap to the master agent,
  * assigning the following variable bindings:
  *
  *  - kamailioMsgQueueDepth          = msgQueueDepth
@@ -45,7 +45,7 @@ int send_kamailioMsgQueueDepthMinorEvent_trap(
 		int msgQueueDepth, int minorThreshold);
 
 /*
- * Sends off an kamailioMsgQueueDepthMajorEvent trap to the master agent,
+ * Sends off a kamailioMsgQueueDepthMajorEvent trap to the master agent,
  * assigning the following variable bindings:
  *
  *  - kamailioMsgQueueDepth          = msgQueueDepth
@@ -56,7 +56,7 @@ int send_kamailioMsgQueueDepthMajorEvent_trap(
 		int msgQueueDepth, int majorThreshold);
 
 /*
- * Sends off an kamailioDialogLimitMinorEvent trap to the master agent,
+ * Sends off a kamailioDialogLimitMinorEvent trap to the master agent,
  * assigning the following variable bindings:
  *
  *  - kamailioCurNumDialogs             = numDialogs
@@ -66,7 +66,7 @@ int send_kamailioMsgQueueDepthMajorEvent_trap(
 int send_kamailioDialogLimitMinorEvent_trap(int numDialogs, int threshold);
 
 /*
- * Sends off an kamailioDialogLimitMinorEvent trap to the master agent,
+ * Sends off a kamailioDialogLimitMinorEvent trap to the master agent,
  * assigning the following variable bindings:
  *
  *  - kamailioCurNumDialogs             = numDialogs

+ 1 - 1
src/modules/snmpstats/snmpSIPServerObjects.c

@@ -215,7 +215,7 @@ int handle_kamailioSIPProxyAuthMethod(netsnmp_mib_handler *handler,
 	}
 
 	/* We can have both tls and auth loaded simultaneously.  Therefore we
-	 * use an if instead of a else/else-if. */
+	 * use an if instead of an else/else-if. */
 	if(module_loaded("auth")) {
 		auth_bitfield |= SIP_AUTH_METHOD_DIGEST;
 		auth_bitfield &= ~SIP_AUTH_METHOD_NONE;

+ 1 - 1
src/modules/snmpstats/utilities.c

@@ -49,7 +49,7 @@
 static cfg_ctx_t *ctx = NULL;
 
 /*!
- * This function copies an Kamailio "str" datatype into a '\\0' terminated char*
+ * This function copies a Kamailio "str" datatype into a '\\0' terminated char*
  * string.
  *
  * \note Make sure to free the memory allocated to *copiedString, when you no

+ 1 - 1
src/modules/snmpstats/utilities.h

@@ -42,7 +42,7 @@
 #include "../../core/sr_module.h"
 
 /*!
- * This function copies an Kamailio "str" datatype into a '\\0' terminated char*
+ * This function copies a Kamailio "str" datatype into a '\\0' terminated char*
  * string. 
  *
  * \note Make sure to free the memory allocated to *copiedString, when you no