"DELETE_TCB"
};
-VOID PrintError(DWORD ErrorCode)
+static VOID PrintError(DWORD ErrorCode)
{
LPVOID lpMsgBuf;
}
#endif
-/*
-typedef struct {
- UINT idLength;
- UINT* ids;
-} AsnObjectIdentifier;
-
-VOID SnmpUtilPrintAsnAny(AsnAny* pAny); // pointer to value to print
-VOID SnmpUtilPrintOid(AsnObjectIdentifier* Oid); // object identifier to print
-
- */
-void test_snmp(void)
-{
- int nBytes = 500;
- BYTE* pCache;
-
- pCache = (BYTE*)SnmpUtilMemAlloc(nBytes);
- if (pCache != NULL) {
- AsnObjectIdentifier* pOidSrc = NULL;
- AsnObjectIdentifier AsnObId;
- if (SnmpUtilOidCpy(&AsnObId, pOidSrc)) {
- //
- //
- //
- SnmpUtilOidFree(&AsnObId);
- }
- SnmpUtilMemFree(pCache);
- } else {
- _tprintf(_T("ERROR: call to SnmpUtilMemAlloc() failed\n"));
- }
-}
-
// Maximum string lengths for ASCII ip address and port names
//
#define HOSTNAMELEN 256
//
// Translate port numbers into their text equivalent if there is one
//
-PCHAR
+static PCHAR
GetPortName(DWORD Flags, UINT port, PCHAR proto, PCHAR name, int namelen)
{
struct servent *psrvent;
//
// Translate IP addresses into their name-resolved form if possible.
//
-PCHAR
+static PCHAR
GetIpHostName(DWORD Flags, BOOL local, UINT ipaddr, PCHAR name, int namelen)
{
// struct hostent *phostent;
return name;
}
-BOOLEAN usage(void)
+static BOOLEAN usage(void)
{
TCHAR buffer[MAX_RESLEN];
//
// Parses the command line arguments.
//
-BOOLEAN
+static BOOLEAN
GetOptions(int argc, char *argv[], PDWORD pFlags)
{
int i, j;
#else
+/*
+typedef struct {
+ UINT idLength;
+ UINT* ids;
+} AsnObjectIdentifier;
+
+VOID SnmpUtilPrintAsnAny(AsnAny* pAny); // pointer to value to print
+VOID SnmpUtilPrintOid(AsnObjectIdentifier* Oid); // object identifier to print
+
+ */
+static void test_snmp(void)
+{
+ int nBytes = 500;
+ BYTE* pCache;
+
+ pCache = (BYTE*)SnmpUtilMemAlloc(nBytes);
+ if (pCache != NULL) {
+ AsnObjectIdentifier* pOidSrc = NULL;
+ AsnObjectIdentifier AsnObId;
+ if (SnmpUtilOidCpy(&AsnObId, pOidSrc)) {
+ //
+ //
+ //
+ SnmpUtilOidFree(&AsnObId);
+ }
+ SnmpUtilMemFree(pCache);
+ } else {
+ _tprintf(_T("ERROR: call to SnmpUtilMemAlloc() failed\n"));
+ }
+}
+
int main(int argc, char *argv[])
{
if (argc > 1) {