Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions utils/common_device_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

#include "common_device_api.h"
#include "rdkv_cdl_log_wrapper.h"

#define PARTNERID_INFO_FILE "/tmp/partnerId.out"

/* function stripinvalidchar - truncates a string when a space or control
character is encountered.

Expand Down Expand Up @@ -124,6 +127,11 @@ size_t GetPartnerId( char *pPartnerId, size_t szBufSize )
}
fclose( fp );
}
else if( (fp = fopen( PARTNERID_INFO_FILE, "r" )) != NULL )
{
fgets( pPartnerId, szBufSize, fp );
fclose( fp );
}
else
{
snprintf( pPartnerId, szBufSize, "comcast" );
Expand Down