]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2006-09-14 03:49:14 by reinelt]
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Thu, 14 Sep 2006 03:49:14 +0000 (03:49 +0000)
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Thu, 14 Sep 2006 03:49:14 +0000 (03:49 +0000)
indent run

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@713 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

drv_Crystalfontz.c
drv_generic_serial.c
lcd4linux.c
thread.c
thread.h

index eda3e2ef746d270bd60c4ae03394686ea24db774..5312dd08605fb1d5b40f590e0f5ccd8e29829e0f 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: drv_Crystalfontz.c,v 1.46 2006/09/07 09:06:25 reinelt Exp $
+/* $Id: drv_Crystalfontz.c,v 1.47 2006/09/14 03:49:14 reinelt Exp $
  *
  * new style driver for Crystalfontz display modules
  *
@@ -23,6 +23,9 @@
  *
  *
  * $Log: drv_Crystalfontz.c,v $
+ * Revision 1.47  2006/09/14 03:49:14  reinelt
+ * indent run
+ *
  * Revision 1.46  2006/09/07 09:06:25  reinelt
  * lots of wrong printf formats corrected (thanks to Ernst Bachmann)
  *
@@ -370,7 +373,8 @@ static void drv_CF_process_packet(void)
 
        default:
            /* this should not happen */
-           error("%s: unexpected response type=0x%02x code=0x%02x size=%d", Name, Packet.type, Packet.code, Packet.size);
+           error("%s: unexpected response type=0x%02x code=0x%02x size=%d", Name, Packet.type, Packet.code,
+                 Packet.size);
            break;
        }
 
@@ -1126,7 +1130,7 @@ int drv_CF_init(const char *section, const int quiet)
     WIDGET_CLASS wc;
     int ret;
 
-    info("%s: %s", Name, "$Revision: 1.46 $");
+    info("%s: %s", Name, "$Revision: 1.47 $");
 
     /* start display */
     if ((ret = drv_CF_start(section)) != 0) {
index b34d117f3b3aee863116adf32a068629d465f5dd..dab1c53fe2610e689ce75ec85a8d9b4ff9b07ed5 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: drv_generic_serial.c,v 1.18 2006/09/08 19:00:46 reinelt Exp $
+/* $Id: drv_generic_serial.c,v 1.19 2006/09/14 03:49:14 reinelt Exp $
  *
  * generic driver helper for serial and usbserial displays
  *
@@ -23,6 +23,9 @@
  *
  *
  * $Log: drv_generic_serial.c,v $
+ * Revision 1.19  2006/09/14 03:49:14  reinelt
+ * indent run
+ *
  * Revision 1.18  2006/09/08 19:00:46  reinelt
  * give up after 10 write errors to serial device
  *
@@ -424,7 +427,7 @@ void drv_generic_serial_write(const char *string, const int len)
        error("%s: write to closed port %s failed!", Driver, Port);
        return;
     }
-    
+
     for (run = 0; run < 10; run++) {
        ret = write(Device, string, len);
        if (ret >= 0 || errno != EAGAIN) {
index 824c59cda8880d1e3df86b38032c7bcb644490b3..bd9d2311e53a135853f374e7aa07e53a9569730a 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: lcd4linux.c,v 1.82 2006/09/13 20:04:57 entropy Exp $
+/* $Id: lcd4linux.c,v 1.83 2006/09/14 03:49:14 reinelt Exp $
  *
  * LCD4Linux
  *
@@ -23,6 +23,9 @@
  *
  *
  * $Log: lcd4linux.c,v $
+ * Revision 1.83  2006/09/14 03:49:14  reinelt
+ * indent run
+ *
  * Revision 1.82  2006/09/13 20:04:57  entropy
  * threads change argv[0] to their thread name, for a neat 'ps' output
  *
@@ -545,10 +548,10 @@ int main(int argc, char *argv[])
        my_argv[c] = strdup(argv[c]);
     }
     my_argv[c] = NULL;
-   
+
     /* save original arguments pointer for threads */
-    thread_argv=argv;
-    thread_argc=argc;
+    thread_argv = argv;
+    thread_argc = argc;
 
     running_foreground = 0;
     running_background = 0;
index 2aac1280aa1790f58041a56fe80968ec93e6623e..d7cfcc983c7524a61c8db118eb8f968b0f34dff8 100644 (file)
--- a/thread.c
+++ b/thread.c
@@ -1,4 +1,4 @@
-/* $Id: thread.c,v 1.9 2006/09/13 20:04:57 entropy Exp $
+/* $Id: thread.c,v 1.10 2006/09/14 03:49:14 reinelt Exp $
  *
  * thread handling (mutex, shmem, ...)
  *
@@ -26,6 +26,9 @@
  *
  *
  * $Log: thread.c,v $
+ * Revision 1.10  2006/09/14 03:49:14  reinelt
+ * indent run
+ *
  * Revision 1.9  2006/09/13 20:04:57  entropy
  * threads change argv[0] to their thread name, for a neat 'ps' output
  *
 #endif
 
 
-int   thread_argc;
+int thread_argc;
 char **thread_argv;
 
 
@@ -202,7 +205,7 @@ int thread_create(const char *name, void (*thread) (void *data), void *data)
     pid_t pid, ppid;
 
     ppid = getpid();
-    
+
     switch (pid = fork()) {
     case -1:
        error("fatal error: fork(%s) failed: %s", name, strerror(errno));
@@ -210,8 +213,8 @@ int thread_create(const char *name, void (*thread) (void *data), void *data)
     case 0:
        info("thread %s starting...", name);
        if (thread_argc > 0) {
-           strncpy(thread_argv[0],name,strlen(thread_argv[0]));
-        }
+           strncpy(thread_argv[0], name, strlen(thread_argv[0]));
+       }
        thread(data);
        info("thread %s ended.", name);
        exit(0);
index 39ef6a815f4027356b8fa7a41cead64bb80335e3..3c19b40f144153ac93fb2bccc9c848428fc40986 100644 (file)
--- a/thread.h
+++ b/thread.h
@@ -1,4 +1,4 @@
-/* $Id: thread.h,v 1.8 2006/09/13 20:04:57 entropy Exp $
+/* $Id: thread.h,v 1.9 2006/09/14 03:49:14 reinelt Exp $
  *
  * thread handling (mutex, shmem, ...)
  *
@@ -26,6 +26,9 @@
  *
  *
  * $Log: thread.h,v $
+ * Revision 1.9  2006/09/14 03:49:14  reinelt
+ * indent run
+ *
  * Revision 1.8  2006/09/13 20:04:57  entropy
  * threads change argv[0] to their thread name, for a neat 'ps' output
  *
@@ -60,7 +63,7 @@
 #define _THREAD_H_
 
 
-extern int   thread_argc;
+extern int thread_argc;
 extern char **thread_argv;
 
 int mutex_create(void);