]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/include/rtl/compat_onetd.h
Reformat the sources with orte/uncrustify script
[orte.git] / orte / include / rtl / compat_onetd.h
index d704f7a8247913ce4fb7b79605dc624c100747e4..34804ea1c2b476e68c833b960c16fd2e096f1dca 100644 (file)
@@ -1,31 +1,31 @@
 /*
- *  $Id: compat.h,v 0.0.0.1             2003/12/19 
+ *  $Id: compat.h,v 0.0.0.1             2003/12/19
  *
- *  -------------------------------------------------------------------  
- *                                ORTE                                 
- *                      Open Real-Time Ethernet                       
- *                                                                    
- *                      Copyright (C) 2001-2006                       
- *  Department of Control Engineering FEE CTU Prague, Czech Republic  
- *                      http://dce.felk.cvut.cz                       
- *                      http://www.ocera.org                          
- *                                                                    
- *  Author:             Petr Smolik       petr@smoliku.cz
+ *  -------------------------------------------------------------------
+ *                                ORTE
+ *                      Open Real-Time Ethernet
+ *
+ *                      Copyright (C) 2001-2006
+ *  Department of Control Engineering FEE CTU Prague, Czech Republic
+ *                      http://dce.felk.cvut.cz
+ *                      http://www.ocera.org
+ *
+ *  Author:              Petr Smolik       petr@smoliku.cz
  *  Author - this code:         Michal Sojka      sojka1@fel.cvut.cz
- *  Advisor:            Pavel Pisa                                   
- *  Project Responsible: Zdenek Hanzalek                              
+ *  Advisor:             Pavel Pisa
+ *  Project Responsible: Zdenek Hanzalek
  *  --------------------------------------------------------------------
  *
  *  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.
- *  
+ *
  */
 
 #ifndef _COMPAT_H
 #define sendto                      ocn_sendto
 #define close                       ocn_close
 
-static inline int atoi(const char* nptr)
+static inline int
+atoi(const char *nptr)
 {
-    return simple_strtol(nptr, (char **)NULL, 10);
+  return simple_strtol(nptr, (char **)NULL, 10);
 }
 
-static inline __u32 inet_addr(const char *cp)
+static inline __u32
+inet_addr(const char *cp)
 {
-                   return in_aton(cp);
+  return in_aton(cp);
 }
 
 static char inet_ntoa_buf[16];
-static inline char *inet_ntoa(struct in_addr in) {
+static inline char *
+inet_ntoa(struct in_addr in)
+{
   unsigned char *octet;
 
   octet = (unsigned char *)&(in.s_addr);