Xinqi Bao's Git

Fix whitespace
authorAaron Marcher <[email protected]>
Sun, 8 Jul 2018 15:44:53 +0000 (17:44 +0200)
committerAaron Marcher <[email protected]>
Sun, 8 Jul 2018 15:44:53 +0000 (17:44 +0200)
components/ram.c
components/temperature.c
components/wifi.c

index 1d5b1da..91311ac 100644 (file)
@@ -80,7 +80,7 @@
        #include <sys/types.h>
        #include <unistd.h>
 
-       #define LOG1024         10
+       #define LOG1024 10
        #define pagetok(size, pageshift) (size_t)(size << (pageshift - LOG1024))
 
        inline int
index 45fbc9b..d56cc0e 100644 (file)
@@ -11,7 +11,7 @@
        {
                uintmax_t temp;
 
-               if(pscanf(file, "%ju", &temp) != 1) {
+               if (pscanf(file, "%ju", &temp) != 1) {
                        return NULL;
                }
 
index e5dd4b5..8863252 100644 (file)
@@ -32,7 +32,7 @@
                }
                p = fgets(status, 5, fp);
                fclose(fp);
-               if(!p || strcmp(status, "up\n") != 0) {
+               if (!p || strcmp(status, "up\n") != 0) {
                        return NULL;
                }