Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 130407
Collapse All | Expand All

(-)hddtemp-0.3-beta15.orig/src/sata.c (+2 lines)
Lines 88-94 Link Here
88
    return strdup(_("unknown"));
88
    return strdup(_("unknown"));
89
  else
89
  else
90
  {
90
  {
91
		//fprintf(stderr,"sata_model1=%s\n",identify + 54);
91
    sata_fixstring(identify + 54, 24);
92
    sata_fixstring(identify + 54, 24);
93
		//fprintf(stderr,"sata_model2=%s\n",identify + 54);
92
    return strdup(identify + 54);
94
    return strdup(identify + 54);
93
  }
95
  }
94
}
96
}
(-)hddtemp-0.3-beta15.orig/src/satacmds.c (-1 / +4 lines)
Lines 98-104 Link Here
98
  /* convert from big-endian to host byte order */
98
  /* convert from big-endian to host byte order */
99
  for (p = end ; p != s;) {
99
  for (p = end ; p != s;) {
100
    unsigned short *pp = (unsigned short *) (p -= 2);
100
    unsigned short *pp = (unsigned short *) (p -= 2);
101
    *pp = ntohs(*pp);
101
		char tmp = p[0];
102
		p[0] = p[1];
103
		p[1] = tmp;
104
    //*pp = ntohs(*pp);
102
  }
105
  }
103
106
104
  /* strip leading blanks */
107
  /* strip leading blanks */

Return to bug 130407