• R/O
  • HTTP
  • SSH
  • HTTPS

openpts: 提交

Repo for OpenPTS version 0.2.X


Commit MetaInfo

修订版bd0c162101b8c60e2a916c3f2f838d65bba37b3c (tree)
时间2012-01-05 17:02:06
作者Seiji Munetoh <munetoh@jp.i...>
CommiterSeiji Munetoh

Log Message

Fxied to build on Fedora16

更改概述

差异

--- a/src/aru.c
+++ b/src/aru.c
@@ -187,8 +187,8 @@ int startUpdate(OPENPTS_CONTEXT *ctx, OPENPTS_PCR_EVENT_WRAPPER *eventWrapper) {
187187 int target_pcr_index;
188188 int target_snapshot_level;
189189 int event_num;
190- int update_type;
191- int data_length;
190+ // int update_type;
191+ // int data_length;
192192
193193 DEBUG_CAL("startUpdate() - start\n");
194194
@@ -242,14 +242,14 @@ int startUpdate(OPENPTS_CONTEXT *ctx, OPENPTS_PCR_EVENT_WRAPPER *eventWrapper) {
242242 target_pcr_index = b2l(start->target_pcr_index);
243243 target_snapshot_level = b2l(start->target_snapshot_level);
244244 event_num = b2l(start->event_num);
245- update_type = b2l(start->update_type);
246- data_length = b2l(start->data_length);
245+ // update_type = b2l(start->update_type);
246+ // data_length = b2l(start->data_length);
247247 } else {
248248 target_pcr_index = start->target_pcr_index;
249249 target_snapshot_level = start->target_snapshot_level;
250250 event_num = start->event_num;
251- update_type = start->update_type;
252- data_length = start->data_length;
251+ // update_type = start->update_type;
252+ // data_length = start->data_length;
253253 }
254254
255255 DEBUG("Update pcr=%08x level=%08x count=%d endian=%d",
@@ -576,9 +576,9 @@ int updateSnapshot(OPENPTS_CONTEXT *ctx, OPENPTS_UPDATE_SNAPSHOT *uss, int i, in
576576 int rc = 0;
577577 int target_pcr_index;
578578 int target_snapshot_level;
579- int event_num;
579+ // int event_num;
580580 int update_type;
581- int data_length;
581+ // int data_length;
582582
583583 DEBUG_CAL("updateSnapshot() - start, pcr=%d level=%d %d events exist!!!\n", i, j, uss->event_count);
584584
@@ -599,15 +599,15 @@ int updateSnapshot(OPENPTS_CONTEXT *ctx, OPENPTS_UPDATE_SNAPSHOT *uss, int i, in
599599 if (ctx->conf->iml_endian != 0) {
600600 target_pcr_index = b2l(start->target_pcr_index);
601601 target_snapshot_level = b2l(start->target_snapshot_level);
602- event_num = b2l(start->event_num);
602+ // event_num = b2l(start->event_num);
603603 update_type = b2l(start->update_type);
604- data_length = b2l(start->data_length);
604+ // data_length = b2l(start->data_length);
605605 } else {
606606 target_pcr_index = start->target_pcr_index;
607607 target_snapshot_level = start->target_snapshot_level;
608- event_num = start->event_num;
608+ // event_num = start->event_num;
609609 update_type = start->update_type;
610- data_length = start->data_length;
610+ // data_length = start->data_length;
611611 }
612612
613613 /* update target snaposhot */
--- a/src/smbios.c
+++ b/src/smbios.c
@@ -167,16 +167,16 @@ int printSmbios(BYTE *data, int length) {
167167 int handle;
168168 int handle_old = -1;
169169 BYTE *ptr = data;
170- BYTE *strings;
170+ // BYTE *strings;
171171 BYTE *eod = data + length;
172172 int str_length;
173- int str_num;
173+ // int str_num;
174174 int cnt = 0;
175175
176176 if ((ptr[0] == 0x5f) && (ptr[1] == 0x53) && (ptr[2] == 0x4d) && (ptr[3] == 0x5f)) {
177177 /* */
178178 str_length = ptr[0x16] + (ptr[0x17]<<8);
179- str_num = ptr[0x1C] + (ptr[0x1D]<<8);
179+ // str_num = ptr[0x1C] + (ptr[0x1D]<<8);
180180 eod = ptr + str_length + 32;
181181 // SKIP Head
182182 ptr += 32;
@@ -193,7 +193,7 @@ int printSmbios(BYTE *data, int length) {
193193 }
194194
195195 ptr += len;
196- strings = ptr;
196+ // strings = ptr;
197197
198198 if (handle != handle_old +1) {
199199 break;
Show on old repository browser