"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/net/os/solaris/Link.inc" between
monit-5.27.2.tar.gz and monit-5.28.0.tar.gz

About: Monit is a utility for managing and monitoring processes, files, directories and filesystems (with automatic error recovery).

Link.inc  (monit-5.27.2):Link.inc  (monit-5.28.0)
skipping to change at line 50 skipping to change at line 50
int instance; int instance;
char module[64]; char module[64];
} *Interface_T; } *Interface_T;
/* ----------------------------------------------------------------- Private */ /* ----------------------------------------------------------------- Private */
// Parse the interface name like e1000g1 into module:instance -> e1000g:1 // Parse the interface name like e1000g1 into module:instance -> e1000g:1
static bool _parseInterface(const char *name, Interface_T interface) { static bool _parseInterface(const char *name, Interface_T interface) {
for (int len = strlen(name), i = len - 1; i >= 0; i--) { for (int len = strlen(name), i = len - 1; i >= 0; i--) {
if (! isdigit(*(name + i))) { if (! isdigit(*(name + i))) {
strncpy(interface->module, name, i + 1 < sizeof(interfac e->module) ? i + 1 : sizeof(interface->module) - 1); strncpy(interface->module, name, i + 1 < (int)sizeof(int erface->module) ? i + 1 : (int)sizeof(interface->module) - 1);
interface->instance = Str_parseInt(name + i + 1); interface->instance = Str_parseInt(name + i + 1);
return true; return true;
} }
} }
return false; return false;
} }
static kstat_t *_getKstat(kstat_ctl_t *kc, char *name) { static kstat_t *_getKstat(kstat_ctl_t *kc, char *name) {
kstat_t *ksp; kstat_t *ksp;
struct Interface_T interface = {}; struct Interface_T interface = {};
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)