Changeset 4807
- Timestamp:
- 09/18/07 22:53:42 (6 years ago)
- Location:
- lm-sensors/branches/lm-sensors-3.0.0/prog/sensord
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/prog/sensord/args.c
r4802 r4807 81 81 { "local6", LOG_LOCAL6 }, { "local7", LOG_LOCAL7 }, 82 82 { "daemon", LOG_DAEMON }, { "user", LOG_USER }, 83 { NULL }83 { NULL, 0 } 84 84 }; 85 85 -
lm-sensors/branches/lm-sensors-3.0.0/prog/sensord/rrd.c
r4804 r4807 87 87 static void 88 88 rrdCheckLabel 89 (const char *rawLabel, int index ) {90 char *buffer = rrdLabels[index ];89 (const char *rawLabel, int index0) { 90 char *buffer = rrdLabels[index0]; 91 91 int i, j, okay; 92 92 … … 105 105 j = 0; 106 106 okay = (i > 0); 107 while (okay && (j < index )) /* locate duplicates */107 while (okay && (j < index0)) /* locate duplicates */ 108 108 okay = strcmp (rrdLabels[j ++], buffer); 109 109 … … 129 129 j = 0; 130 130 okay = 1; 131 while (okay && (j < index ))131 while (okay && (j < index0)) 132 132 okay = strcmp (rrdLabels[j ++], buffer); 133 133 } … … 275 275 struct gr { 276 276 DataType type; 277 c har *h2;278 c har *image;279 c har *title;280 c har *axisTitle;281 c har *axisDefn;282 c har *options;277 const char *h2; 278 const char *image; 279 const char *title; 280 const char *axisTitle; 281 const char *axisDefn; 282 const char *options; 283 283 int loadAvg; 284 284 }; … … 358 358 0 359 359 }, { 360 DataType_other 360 DataType_other, 361 NULL, 362 NULL, 363 NULL, 364 NULL, 365 NULL, 366 NULL, 367 0 361 368 } 362 369 };
