diff dspad.c @ 2:f362b20de51e

Remove trailing whitespaces.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 22 Feb 2015 18:03:26 +0100
parents e70ea46d6073
children
line wrap: on
line diff
--- a/dspad.c
+++ b/dspad.c
@@ -7,7 +7,7 @@
 
 #include "ds.h"
 #include "uinput.h"
-#include "service.h" 
+#include "service.h"
 #include "restartOp.h"
 #include "XML.h"
 
@@ -31,13 +31,13 @@ int dspad_process_xml(void* elem, char* 
 
     if(tag != NULL && content != NULL){
         if(strcmp(content, "")){
-        
+
             /* process atom: */
             if(!strcmp(tag, "base_port")){
                 base_port = atoi(content);
                 return 1;
             }
-            
+
             else if(!strcmp(tag, "uinput_dev")){
                 if(uinput_dev != NULL) free(uinput_dev);
                 uinput_dev = (char*)malloc(strlen(content)+1);
@@ -49,11 +49,11 @@ int dspad_process_xml(void* elem, char* 
                 nbdev = atoi(content);
                 return 1;
             }
-    
+
             return ReadXML(elem, dspad_process_xml, content);
         }
     }
-    
+
     /* Should not happend... (compiler warning) */
     return 0;
 }
@@ -68,7 +68,7 @@ int dspad_process_xml(void* elem, char* 
 int config_read(char* path){
     int ok = 0;
     char* text = NULL;
-    
+
     text = LoadFile(path);
     if(text){
         ok = ReadXML(NULL, dspad_process_xml, text);
@@ -91,13 +91,13 @@ int main(int argc, char** argv){
     (void)argc;
     (void)argv;
     /* --------------------------------- */
-    
+
     curdev = 0;
 
     fprintf(stdout, "\n--- Starting DSPad Server v0.2 ---\n");
-    
+
     pid_t pid = 0;
-    
+
     if(argc == 3 && !strcmp("-f", argv[1])){
         fprintf(stderr, "Loading \"%s\"\n", argv[2]);
         config_read(argv[2]);
@@ -106,9 +106,9 @@ int main(int argc, char** argv){
         fprintf(stderr, "Loading \"%s\"\n", DEFAULT_PATH);
         config_read(DEFAULT_PATH);
     }
-    
-        
-    
+
+
+
     /* fork servers */
     while(curdev < nbdev){
         pid = fork_rs();
@@ -131,8 +131,8 @@ int main(int argc, char** argv){
                 exit(EXIT_SUCCESS);
                 break;
         } /* switch */
-    }    
-    
+    }
+
     return 0;
 }