[pisa-src] r1812 - trunk/libpisa/util.c

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 26 Nov 2009 15:16:26 +0100

Author: tjansen
Date: Thu Nov 26 15:16:25 2009
New Revision: 1812

Log:
Cosmetics: Put opening brace for a function on a new line.

Modified:
   trunk/libpisa/util.c

Modified: trunk/libpisa/util.c
==============================================================================
--- trunk/libpisa/util.c        Thu Nov 26 15:15:37 2009        (r1811)
+++ trunk/libpisa/util.c        Thu Nov 26 15:16:25 2009        (r1812)
@@ -177,7 +177,8 @@
  *
  * @return true or false
  */
-bool pisa_check_if_hipd_runs(void){
+bool pisa_check_if_hipd_runs(void)
+{
        struct stat file_stat;
        char filename[MAX_FILENAME+1], pidfilename[MAX_FILENAME+1];
        FILE *lock_file;
@@ -225,7 +226,8 @@
  *
  * @return 0 if successful, or negative on error.
  */
-int pisa_check_and_create_dir(const char *dirname, const mode_t mode){
+int pisa_check_and_create_dir(const char *dirname, const mode_t mode)
+{
        int err = 0;
        struct stat dir_stat;
 
@@ -244,13 +246,13 @@
        return err;
 }
 
-int pisa_remove_lock_file(const char *filename){
+int pisa_remove_lock_file(const char *filename)
+{
        return unlink(filename);
 }
 
-
-int pisa_create_lock_file(const char *filename, int killold) {
-
+int pisa_create_lock_file(const char *filename, int killold)
+{
        int err = 0, fd = 0, old_pid = 0, new_pid_str_len = 0;
        char old_pid_str[64], new_pid_str[64];
 

Other related posts:

  • » [pisa-src] r1812 - trunk/libpisa/util.c - Thomas Jansen