style
[psensor.git] / src / lib / amd.c
index 4660aa5..b303252 100644 (file)
@@ -1,21 +1,21 @@
 /*
   Copyright (C) 2010-2011 thgreasi@gmail.com
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
-
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
   02110-1301 USA
-*/
* Copyright (C) 2010-2011 thgreasi@gmail.com, jeanfi@gmail.com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
* General Public License for more details.
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA
+ */
 #ifndef LINUX
 #define LINUX 1
 #endif
@@ -126,8 +126,8 @@ static struct psensor *create_sensor(int id, int values_len)
                sensor_type = SENSOR_TYPE_AMD_TEMP;
        }
 
-       sid = malloc(strlen("AMD") + 1 + strlen(name) + 1);
-       sprintf(sid, "AMD %s", name);
+       sid = malloc(strlen("amd") + 1 + strlen(name) + 1);
+       sprintf(sid, "amd %s", name);
 
        s = psensor_create(sid, strdup(name),
                           sensor_type, values_len);
@@ -146,7 +146,7 @@ static struct psensor *create_sensor(int id, int values_len)
 static int init()
 {
        LPAdapterInfo lpadapterinfo = NULL;
-       int  i, inumberadapters, inumberadaptersactive = 0;
+       int i, inumberadapters, inumberadaptersactive = 0;
        int lpstatus, iadapterindex;
 
        hdll = NULL;