]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Remove all trailing whitespaces.
authorStéphane Graber <stgraber@ubuntu.com>
Mon, 26 Nov 2012 17:08:13 +0000 (12:08 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 26 Nov 2012 17:08:13 +0000 (12:08 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
34 files changed:
COPYING
TODO
config/acinclude.m4
doc/FAQ.txt
doc/lxc-cgroup.sgml.in
doc/lxc-console.sgml.in
doc/lxc-destroy.sgml.in
doc/lxc-execute.sgml.in
doc/lxc-freeze.sgml.in
doc/lxc-ls.sgml.in
doc/lxc-monitor.sgml.in
doc/lxc-ps.sgml.in
doc/lxc-start.sgml.in
doc/lxc-stop.sgml.in
doc/lxc-unfreeze.sgml.in
doc/lxc-wait.sgml.in
doc/lxc.conf
doc/lxc.conf.sgml.in
doc/lxc.sgml.in
src/lxc/af_unix.c
src/lxc/genl.c
src/lxc/genl.h
src/lxc/lxc-checkconfig.in
src/lxc/lxc_monitor.c
src/lxc/lxc_start.c
src/lxc/mainloop.c
src/lxc/mainloop.h
src/lxc/network.h
src/lxc/nl.c
src/lxc/nl.h
src/lxc/rtnl.c
src/lxc/rtnl.h
templates/lxc-debian.in
templates/lxc-oracle.in

diff --git a/COPYING b/COPYING
index 5ab7695ab8cabe0c5c8a814bb0ab1e8066578fbb..602bfc94635ddf8f1bf2b00419a85ead645a5b67 100644 (file)
--- a/COPYING
+++ b/COPYING
@@ -146,7 +146,7 @@ such a program is covered only if its contents constitute a work based
 on the Library (independent of the use of the Library in a tool for
 writing it).  Whether that is true depends on what the Library does
 and what the program that uses the Library does.
-  
+
   1. You may copy and distribute verbatim copies of the Library's
 complete source code as you receive it, in any medium, provided that
 you conspicuously and appropriately publish on each copy an
diff --git a/TODO b/TODO
index 3b6e95638c84660dfad3aa057d6f86d659d28688..56d50569861e22f3c8ef32833ffedf6e4901d93c 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,6 +1,6 @@
 
 
 * create an interactive configuration with the lxc-create command
-  line, like the 'make menuconfig' of the kernel.  
+  line, like the 'make menuconfig' of the kernel.
 
   = lxc-create [-n foo] -m|--menuconfig
index a36fdf3ccafa4ab40ed76219a38cdc6dda02180b..d718b5e767b440e612024f5ed09da332ea52e858 100644 (file)
@@ -2,21 +2,21 @@ dnl as-ac-expand.m4 0.2.0
 dnl autostars m4 macro for expanding directories using configure's prefix
 dnl thomas@apestaart.org
 dnl
+
 dnl AS_AC_EXPAND(VAR, CONFIGURE_VAR)
 dnl example
 dnl AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
 dnl will set SYSCONFDIR to /usr/local/etc if prefix=/usr/local
+
 AC_DEFUN([AS_AC_EXPAND],
 [
     EXP_VAR=[$1]
     FROM_VAR=[$2]
+
     dnl first expand prefix and exec_prefix if necessary
     prefix_save=$prefix
     exec_prefix_save=$exec_prefix
+
     dnl if no prefix given, then use /usr/local, the default prefix
     if test "x$prefix" = "xNONE"; then
         prefix="$ac_default_prefix"
@@ -25,7 +25,7 @@ AC_DEFUN([AS_AC_EXPAND],
     if test "x$exec_prefix" = "xNONE"; then
         exec_prefix=$prefix
     fi
+
     full_var="$FROM_VAR"
     dnl loop until it doesn't change anymore
     while true; do
@@ -33,11 +33,11 @@ AC_DEFUN([AS_AC_EXPAND],
         if test "x$new_full_var" = "x$full_var"; then break; fi
         full_var=$new_full_var
     done
+
     dnl clean up
     full_var=$new_full_var
     AC_SUBST([$1], "$full_var")
+
     dnl restore prefix and exec_prefix
     prefix=$prefix_save
     exec_prefix=$exec_prefix_save
@@ -94,7 +94,7 @@ x$B" | sed 's/^ *//' | sort -r | sed "s/x${A}/true/;s/x${B}/false/;1q"`
       # Determine the number of characters in A and B.
       ax_compare_version_len_A=`echo "$A" | awk '{print(length)}'`
       ax_compare_version_len_B=`echo "$B" | awk '{print(length)}'`
+
       # Set A to no more than B's length and B to no more than A's length.
       A=`echo "$A" | sed "s/\(.\{$ax_compare_version_len_B\}\).*/\1/"`
       B=`echo "$B" | sed "s/\(.\{$ax_compare_version_len_A\}\).*/\1/"`
index fce5eef5da3640fe1b85b46a08afc79f7154e771..50238ffde546a1d47aea36cfb099e4ecc06013dc 100644 (file)
@@ -32,8 +32,8 @@ error when starting a container.
 "[syserr] lxc_start:96: Invalid argument - failed to fork into a new
 namespace"
 
-Answer: 
-------- 
+Answer:
+-------
 
 read the lxc man page about kernel version prereq :) most probably
 your kernel is not configured to support the container options you
index b321bc3ac01691d0e7784e43914783340f0a619f..53e503542704b172ba10d7ed63720cdd6947760a 100644 (file)
@@ -1,4 +1,4 @@
-<!-- 
+<!--
 
 lxc: linux Container library
 
@@ -143,7 +143,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
            The container is not running.
           </para>
         </listitem>
-      </varlistentry>    
+      </varlistentry>
 
 
     </variablelist>
index 3c4533af544bc1c936e48eeb813068c67961a083..7b32e08205590823ee26d7cb6bc444e45a6b5849 100644 (file)
@@ -1,4 +1,4 @@
-<!-- 
+<!--
 
 lxc: linux Container library
 
@@ -67,7 +67,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
       The available tty are free slots taken by this command. That
       means if the container has four ttys available and the command
       has been launched four times taking the different tty, the fifth
-      command will fail because no console will be available. 
+      command will fail because no console will be available.
     </para>
 
     <para>
@@ -114,7 +114,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
            user "foo" and "bar" is trying to open a console to it.
           </para>
         </listitem>
-      </varlistentry>    
+      </varlistentry>
 
     </variablelist>
 
index 6b612c258dff853cc1dee9ce977c532f2e975dec..fe06f52767d3ccb1b633efeac60510b0f3dc01b3 100644 (file)
@@ -1,4 +1,4 @@
-<!-- 
+<!--
 
 lxc: linux Container library
 
@@ -100,7 +100,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
            command to list the available containers on the system.
           </para>
         </listitem>
-      </varlistentry>    
+      </varlistentry>
 
     </variablelist>
 
index 0da2284b31b22192f3e2ba19762379bad02541d3..393efe1ecf05bae886ee02669127b23ece208a62 100644 (file)
@@ -1,4 +1,4 @@
-<!-- 
+<!--
 
 lxc: linux Container library
 
@@ -162,7 +162,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
            container or create a new one.
           </para>
         </listitem>
-      </varlistentry>   
+      </varlistentry>
 
     </variablelist>
 
index 2fd2577a0ecb4dd962dc62770f2eea3bc8e1362c..228fd4cb9d5525f7ca2971fc913d5793d2fa6588 100644 (file)
@@ -1,4 +1,4 @@
-<!-- 
+<!--
 
 lxc: linux Container library
 
@@ -81,7 +81,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
            the <command>lxc-create</command> command.
           </para>
         </listitem>
-      </varlistentry>    
+      </varlistentry>
 
 
     </variablelist>
index f5f65732cf37242ded056530a19c00d4fbb7d4b8..5e421b7ede4c73ffd5676403e7aa90750ca1fab5 100644 (file)
@@ -1,5 +1,5 @@
 
-<!-- 
+<!--
 
 lxc: linux Container library
 
@@ -120,7 +120,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
   <refsect1>
     <title>See Also</title>
 
-    <simpara>    
+    <simpara>
       <citerefentry>
        <refentrytitle>ls</refentrytitle>
        <manvolnum>1</manvolnum>
index c982c37c60f1985b05e4dc35586aef7a82a61c7e..6358d112f5c6c49976e6327534cd29f00cc81644 100644 (file)
@@ -1,4 +1,4 @@
-<!-- 
+<!--
 
 lxc: linux Container library
 
@@ -135,7 +135,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
            the <command>lxc-create</command> command.
           </para>
         </listitem>
-      </varlistentry>    
+      </varlistentry>
 
 
     </variablelist>
@@ -145,7 +145,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
   <refsect1>
     <title>See Also</title>
 
-    <simpara>    
+    <simpara>
       <citerefentry>
        <refentrytitle>regex</refentrytitle>
        <manvolnum>7</manvolnum>
index 6f9d60e2de5e09a29fbb605703b7297a58a3ca4f..fb8e4c7e762dee4922a16df9f36294548815fced 100644 (file)
@@ -1,5 +1,5 @@
 
-<!-- 
+<!--
 
 lxc: linux Container library
 
@@ -86,8 +86,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
        <listitem>
          <para>
            specify the container <replaceable>name</replaceable>
-           to limit the output to the processes belonging 
-           to this container name.         
+           to limit the output to the processes belonging
+           to this container name.     
          </para>
        </listitem>
       </varlistentry>
@@ -98,7 +98,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
        </term>
        <listitem>
          <para>
-           limit the output to the processes belonging 
+           limit the output to the processes belonging
            to all lxc containers.
          </para>
        </listitem>
@@ -139,7 +139,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
   <refsect1>
     <title>See Also</title>
 
-    <simpara>    
+    <simpara>
       <citerefentry>
        <refentrytitle>ps</refentrytitle>
        <manvolnum>1</manvolnum>
index e4b90079b98992dd9ae956da0c9d5a48071089ca..5c98a2592a48b230cf5bd59c1dc9559e7ccade04 100644 (file)
@@ -1,4 +1,4 @@
-<!-- 
+<!--
 
 lxc: linux Container library
 
@@ -198,7 +198,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
            container or create a new one.
           </para>
         </listitem>
-      </varlistentry>    
+      </varlistentry>
 
     </variablelist>
 
index b04d019106eb656211f80b38a40968a147ee4c32..64fceb886e8dc92c8d9f54024a584ded818f755b 100644 (file)
@@ -1,4 +1,4 @@
-<!-- 
+<!--
 
 lxc: linux Container library
 
@@ -80,7 +80,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
            container or create a new one.
           </para>
         </listitem>
-      </varlistentry>    
+      </varlistentry>
 
       <varlistentry>
         <term>The container was not found</term>
@@ -90,7 +90,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
            the <command>lxc-create</command> command.
           </para>
         </listitem>
-      </varlistentry>    
+      </varlistentry>
 
 
     </variablelist>
index c4e71debb694647906bdcbf7cc8c12d9926b2d18..51f2c22f59f57700feaecce281150cbc057062b5 100644 (file)
@@ -1,4 +1,4 @@
-<!-- 
+<!--
 
 lxc: linux Container library
 
@@ -78,7 +78,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
            the <command>lxc-create</command> command.
           </para>
         </listitem>
-      </varlistentry>    
+      </varlistentry>
 
 
     </variablelist>
index 11e9b7e17c3ab1be24d60b0bae653f18de53c30d..4a73d058f08185b9023c70a8215df7aa8ab19ca2 100644 (file)
@@ -1,5 +1,5 @@
 
-<!-- 
+<!--
 
 lxc: linux Container library
 
@@ -133,7 +133,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
            the <command>lxc-create</command> command.
           </para>
         </listitem>
-      </varlistentry>    
+      </varlistentry>
 
 
     </variablelist>
index 58cb960ccd9c89594d90b7e2bf43d1b5ee406c05..4e2491b9f7b6e44f368dd2680a3a5ddb04f91483 100644 (file)
@@ -16,7 +16,7 @@ lxc.network.type = macvlan
 
 # specify the flags to be used for the network, actually only <up> is allowed
 # which mean the network should be set up when created. If the network is set
-# up, the loopback is automatically set up too. 
+# up, the loopback is automatically set up too.
 lxc.network.flags = up
 
 # specify the physical network device which will communicate with the
index 70b806d238b4ef5bf17d5a5cfe2a32042336c817..96dea89f3b3c1956afcca1600656478222777da0 100644 (file)
@@ -1,4 +1,4 @@
-<!-- 
+<!--
 
 lxc: linux Container library
 
@@ -235,7 +235,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
              specify an action to do for the
              network.
            </para>
-           
+       
            <para><option>up:</option> activates the interface.
            </para>
          </listitem>
@@ -849,7 +849,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
   <refsect1>
     <title>See Also</title>
-    <simpara>    
+    <simpara>
       <citerefentry>
        <refentrytitle><command>chroot</command></refentrytitle>
        <manvolnum>1</manvolnum>
@@ -867,14 +867,14 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
     </simpara>
   </refsect1>
-  
+
   &seealso;
 
   <refsect1>
     <title>Author</title>
     <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
   </refsect1>
-  
+
 </refentry>
 
 <!-- Keep this comment at the end of the file
index d98ca219f363a9f5646e5341f0a715f5ae54ce6b..cfdce4aa3840319b53a564a834a96a59236ac4db 100644 (file)
@@ -1,4 +1,4 @@
-<!-- 
+<!--
 
 lxc: linux Container library
 
@@ -239,7 +239,7 @@ rootfs
        /sbin /home/root/sshd/rootfs/sbin none ro,bind 0 0
       </programlisting>
     </para>
-    
+
     <para>How to run a system in a container ?</para>
 
     <para>Running a system inside a container is paradoxically easier
@@ -249,7 +249,7 @@ rootfs
     without configuration because the container will set them
     up. eg. the ipv4 address will be setup by the system container
     init scripts. Here is an example of the mount points file:
-      
+
       <programlisting>
        [root@lxc debian]$ cat fstab
 
@@ -312,7 +312,7 @@ rootfs
     <refsect2>
       <title>Configuration</title>
       <para>The container is configured through a configuration
-      file, the format of the configuration file is described in 
+      file, the format of the configuration file is described in
       <citerefentry>
        <refentrytitle><filename>lxc.conf</filename></refentrytitle>
        <manvolnum>5</manvolnum>
@@ -363,7 +363,7 @@ rootfs
       but if needed the <command>lxc-stop</command> command can
       be used to kill the still running application.
       </para>
-      
+
       <para>
        Running an application inside a container is not exactly the
        same thing as running a system. For this reason, there are two
@@ -434,7 +434,7 @@ rootfs
          lxc-freeze -n foo
        </programlisting>
 
-       will put all the processes in an uninteruptible state and 
+       will put all the processes in an uninteruptible state and
 
        <programlisting>
          lxc-unfreeze -n foo
index 6d6cca1d6a0c70f161d72ac009f47a43532dd345..2a3482847bc7ad915531183ef2af5c89b03e152a 100644 (file)
@@ -52,7 +52,7 @@ int lxc_af_unix_open(const char *path, int type, int flags)
 
        addr.sun_family = AF_UNIX;
        /* copy entire buffer in case of abstract socket */
-       memcpy(addr.sun_path, path, 
+       memcpy(addr.sun_path, path,
               path[0]?strlen(path):sizeof(addr.sun_path));
 
        if (bind(fd, (struct sockaddr *)&addr, sizeof(addr))) {
@@ -73,7 +73,7 @@ int lxc_af_unix_close(int fd)
        struct sockaddr_un addr;
        socklen_t addrlen;
        
-       if (!getsockname(fd, (struct sockaddr *)&addr, &addrlen) && 
+       if (!getsockname(fd, (struct sockaddr *)&addr, &addrlen) &&
            addr.sun_path[0])
                unlink(addr.sun_path);
 
@@ -95,7 +95,7 @@ int lxc_af_unix_connect(const char *path)
 
        addr.sun_family = AF_UNIX;
        /* copy entire buffer in case of abstract socket */
-       memcpy(addr.sun_path, path, 
+       memcpy(addr.sun_path, path,
               path[0]?strlen(path):sizeof(addr.sun_path));
 
        if (connect(fd, (struct sockaddr *)&addr, sizeof(addr))) {
@@ -161,7 +161,7 @@ int lxc_af_unix_recv_fd(int fd, int *recvfd, void *data, size_t size)
 
         cmsg = CMSG_FIRSTHDR(&msg);
 
-       /* if the message is wrong the variable will not be 
+       /* if the message is wrong the variable will not be
         * filled and the peer will notified about a problem */
        *recvfd = -1;
 
index 43959ce9a7722611660a4e6989ed39c66f674a5a..a0d76ebf4ec814fe091d48c3ab8178f5d61eb511 100644 (file)
@@ -62,7 +62,7 @@ static int genetlink_resolve_family(const char *family)
        if (ret)
                return ret;
 
-       ret = nla_put_string((struct nlmsg *)&request->nlmsghdr, 
+       ret = nla_put_string((struct nlmsg *)&request->nlmsghdr,
                             CTRL_ATTR_FAMILY_NAME, family);
        if (ret)
                goto out;
@@ -130,7 +130,7 @@ extern int genetlink_send(struct genl_handler *handler, struct genlmsg *genlmsg)
        return netlink_send(&handler->nlh, (struct nlmsg *)&genlmsg->nlmsghdr);
 }
 
-extern int genetlink_transaction(struct genl_handler *handler, 
+extern int genetlink_transaction(struct genl_handler *handler,
                          struct genlmsg *request, struct genlmsg *answer)
 {
        return netlink_transaction(&handler->nlh, (struct nlmsg *)&request->nlmsghdr,
index 4800aacc214ebbf644206cbb5caebec0d87eae9b..31b471ae3379ca2de3cf87426ccd8d7e3456edcf 100644 (file)
@@ -30,7 +30,7 @@
 #define GENLMSG_DATA(glh) ((void *)(NLMSG_DATA(glh) + GENL_HDRLEN))
 
 /*
- * struct genl_handler : the structure which store the netlink handler 
+ * struct genl_handler : the structure which store the netlink handler
  *  and the family number resulting of the auto-generating id family
  *  for the generic netlink protocol
  *
@@ -116,6 +116,6 @@ void genlmsg_free(struct genlmsg *genlmsg);
  *
  * Returns 0 on success, < 0 otherwise
  */
-int genetlink_transaction(struct genl_handler *handler, 
+int genetlink_transaction(struct genl_handler *handler,
                          struct genlmsg *request, struct genlmsg *answer);
 #endif
index 8263c172f236cc0016c6552e5e490574258b02e8..7dd647622b38d86f440fad0b2d20139f4f1bfa70 100644 (file)
@@ -89,7 +89,7 @@ fi
 echo -n "Cgroup device: " && is_enabled CONFIG_CGROUP_DEVICE
 echo -n "Cgroup sched: " && is_enabled CONFIG_CGROUP_SCHED
 echo -n "Cgroup cpu account: " && is_enabled CONFIG_CGROUP_CPUACCT
-echo -n "Cgroup memory controller: " 
+echo -n "Cgroup memory controller: "
 if [ $KVER_MAJOR -ge 3 -a $KVER_MINOR -ge 6 ]; then
     is_enabled CONFIG_MEMCG
 else
index 10168fb01a7a8a1af1e9108905b6d2e9bf794f13..4bd6ab0156340a27e04d435ff8b779fe75fd7450 100644 (file)
@@ -102,7 +102,7 @@ int main(int argc, char *argv[])
 
                switch (msg.type) {
                case lxc_msg_state:
-                       printf("'%s' changed state to [%s]\n", 
+                       printf("'%s' changed state to [%s]\n",
                               msg.name, lxc_state2str(msg.value));
                        break;
                default:
index a2335d5957c90dd296004fb635791b38792b630b..cedd908c0ae345ad4c4f85399271494e07368c42 100644 (file)
@@ -122,7 +122,7 @@ int main(int argc, char *argv[])
                return err;
 
        if (!my_args.argc)
-               args = default_args; 
+               args = default_args;
        else
                args = my_args.argv;
 
index 986762cae6e1ba8e35efd8f6386c4501de99b8e9..76ca58c8874a18356841dae527f9072e6d3808b9 100644 (file)
@@ -59,7 +59,7 @@ int lxc_mainloop(struct lxc_epoll_descr *descr)
 
                        /* If the handler returns a positive value, exit
                           the mainloop */
-                       if (handler->callback(handler->fd, handler->data, 
+                       if (handler->callback(handler->fd, handler->data,
                                              descr) > 0)
                                return 0;
                }
@@ -69,7 +69,7 @@ int lxc_mainloop(struct lxc_epoll_descr *descr)
        }
 }
 
-int lxc_mainloop_add_handler(struct lxc_epoll_descr *descr, int fd, 
+int lxc_mainloop_add_handler(struct lxc_epoll_descr *descr, int fd,
                             lxc_mainloop_callback_t callback, void *data)
 {
        struct epoll_event ev;
index 09e50332b6b1a17500d3a262d4909c54eeddef83..c921a70e544dd147a1cea4de23a191c108c8cb0d 100644 (file)
@@ -28,13 +28,13 @@ struct lxc_epoll_descr {
        struct lxc_list handlers;
 };
 
-typedef int (*lxc_mainloop_callback_t)(int fd, void *data, 
+typedef int (*lxc_mainloop_callback_t)(int fd, void *data,
                                       struct lxc_epoll_descr *descr);
 
 extern int lxc_mainloop(struct lxc_epoll_descr *descr);
 
 extern int lxc_mainloop_add_handler(struct lxc_epoll_descr *descr, int fd,
-                                   lxc_mainloop_callback_t callback, 
+                                   lxc_mainloop_callback_t callback,
                                    void *data);
 
 extern int lxc_mainloop_del_handler(struct lxc_epoll_descr *descr, int fd);
index 5ba059a737dee719cffe7dde21656bb74c680c8f..3f45f7fcdc03274fea07dd662cde3b12009dd7e7 100644 (file)
@@ -100,7 +100,7 @@ extern int lxc_ipv6_gateway_add(int ifindex, struct in6_addr *gw);
  */
 extern int lxc_bridge_attach(const char *bridge, const char *ifname);
 
-/* 
+/*
  * Create default gateway
  */
 extern int lxc_route_create_default(const char *addr, const char *ifname,
index 6294442ec2f31f8c2cf5da73e47496522efd200d..06ff40105d9716c5752eb7b2d7eb8d95a81f46f5 100644 (file)
@@ -48,7 +48,7 @@ extern void *nlmsg_data(struct nlmsg *nlmsg)
        return data;
 }
 
-static int nla_put(struct nlmsg *nlmsg, int attr, 
+static int nla_put(struct nlmsg *nlmsg, int attr,
                   const void *data, size_t len)
 {
        struct rtattr *rta;
@@ -63,7 +63,7 @@ static int nla_put(struct nlmsg *nlmsg, int attr,
        return 0;
 }
 
-extern int nla_put_buffer(struct nlmsg *nlmsg, int attr, 
+extern int nla_put_buffer(struct nlmsg *nlmsg, int attr,
                          const void *data, size_t size)
 {
        return nla_put(nlmsg, attr, data, size);
@@ -193,7 +193,7 @@ extern int netlink_send(struct nl_handler *handler, struct nlmsg *nlmsg)
 #ifndef NLMSG_ERROR
 #define NLMSG_ERROR                0x2
 #endif
-extern int netlink_transaction(struct nl_handler *handler, 
+extern int netlink_transaction(struct nl_handler *handler,
                               struct nlmsg *request, struct nlmsg *answer)
 {
        int ret;
@@ -226,11 +226,11 @@ extern int netlink_open(struct nl_handler *handler, int protocol)
         if (handler->fd < 0)
                 return -errno;
 
-        if (setsockopt(handler->fd, SOL_SOCKET, SO_SNDBUF, 
+        if (setsockopt(handler->fd, SOL_SOCKET, SO_SNDBUF,
                       &sndbuf, sizeof(sndbuf)) < 0)
                 return -errno;
 
-        if (setsockopt(handler->fd, SOL_SOCKET, SO_RCVBUF, 
+        if (setsockopt(handler->fd, SOL_SOCKET, SO_RCVBUF,
                       &rcvbuf,sizeof(rcvbuf)) < 0)
                 return -errno;
 
@@ -238,12 +238,12 @@ extern int netlink_open(struct nl_handler *handler, int protocol)
         handler->local.nl_family = AF_NETLINK;
         handler->local.nl_groups = 0;
 
-        if (bind(handler->fd, (struct sockaddr*)&handler->local, 
+        if (bind(handler->fd, (struct sockaddr*)&handler->local,
                 sizeof(handler->local)) < 0)
                 return -errno;
 
         socklen = sizeof(handler->local);
-        if (getsockname(handler->fd, (struct sockaddr*)&handler->local, 
+        if (getsockname(handler->fd, (struct sockaddr*)&handler->local,
                        &socklen) < 0)
                 return -errno;
 
index 864780a5ad4fd4ae5eafbd76de75dd7f24141568..34aeb365cf107ac4cb176dc18df90c130efe95d2 100644 (file)
@@ -39,7 +39,7 @@
  * struct nl_handler : the handler for netlink sockets, this structure
  *  is used all along the netlink socket life cycle to specify the
  *  netlink socket to be used.
- * 
+ *
  * @fd: the file descriptor of the netlink socket
  * @seq: the sequence number of the netlink messages
  * @local: the bind address
@@ -77,7 +77,7 @@ struct nlmsg {
 int netlink_open(struct nl_handler *handler, int protocol);
 
 /*
- * netlink_close : close a netlink socket, after this call, 
+ * netlink_close : close a netlink socket, after this call,
  *  the handler is no longer valid
  *
  * @handler: a handler to the netlink socket
@@ -87,8 +87,8 @@ int netlink_open(struct nl_handler *handler, int protocol);
 int netlink_close(struct nl_handler *handler);
 
 /*
- * netlink_rcv : receive a netlink message from the kernel. 
- *  It is up to the caller to manage the allocation of the 
+ * netlink_rcv : receive a netlink message from the kernel.
+ *  It is up to the caller to manage the allocation of the
  *  netlink message
  *
  * @handler: a handler to the netlink socket
@@ -110,8 +110,8 @@ int netlink_rcv(struct nl_handler *handler, struct nlmsg *nlmsg);
 int netlink_send(struct nl_handler *handler, struct nlmsg *nlmsg);
 
 /*
- * netlink_transaction: send a request to the kernel and read the response. 
- *  This is useful for transactional protocol. It is up to the caller 
+ * netlink_transaction: send a request to the kernel and read the response.
+ *  This is useful for transactional protocol. It is up to the caller
  *  to manage the allocation of the netlink message.
  *
  * @handler: a handler to a opened netlink socket
@@ -120,11 +120,11 @@ int netlink_send(struct nl_handler *handler, struct nlmsg *nlmsg);
  *
  * Returns 0 on success, < 0 otherwise
  */
-int netlink_transaction(struct nl_handler *handler, 
+int netlink_transaction(struct nl_handler *handler,
                        struct nlmsg *request, struct nlmsg *anwser);
 
 /*
- * nla_put_string: copy a null terminated string to a netlink message 
+ * nla_put_string: copy a null terminated string to a netlink message
  *  attribute
  *
  * @nlmsg: the netlink message to be filled
@@ -146,7 +146,7 @@ int nla_put_string(struct nlmsg *nlmsg, int attr, const char *string);
  *
  * Returns 0 on success, < 0 otherwise
  */
-int nla_put_buffer(struct nlmsg *nlmsg, int attr, 
+int nla_put_buffer(struct nlmsg *nlmsg, int attr,
                   const void *data, size_t size);
 
 /*
@@ -172,7 +172,7 @@ int nla_put_u32(struct nlmsg *nlmsg, int attr, int value);
 int nla_put_u16(struct nlmsg *nlmsg, int attr, ushort value);
 
 /*
- * nla_put_attr: add an attribute name to a netlink 
+ * nla_put_attr: add an attribute name to a netlink
  *
  * @nlmsg: the netlink message to be filled
  * @attr: the attribute name of the integer
@@ -185,7 +185,7 @@ int nla_put_attr(struct nlmsg *nlmsg, int attr);
  * nla_begin_nested: begin the nesting attribute
  *
  * @nlmsg: the netlink message to be filled
- * @attr: the netsted attribute name 
+ * @attr: the netsted attribute name
  *
  * Returns current nested pointer to be reused
  * to nla_end_nested.
@@ -198,17 +198,17 @@ struct rtattr *nla_begin_nested(struct nlmsg *nlmsg, int attr);
  * @nlmsg: the netlink message
  * @nested: the nested pointer
  *
- * Returns the current 
+ * Returns the current
  */
 void nla_end_nested(struct nlmsg *nlmsg, struct rtattr *attr);
 
 /*
- * nlmsg_allocate : allocate a netlink message. The netlink format message 
+ * nlmsg_allocate : allocate a netlink message. The netlink format message
  *  is a header, a padding, a payload and a padding again.
- *  When a netlink message is allocated, the size specify the 
+ *  When a netlink message is allocated, the size specify the
  *  payload we want. So the real size of the allocated message
  *  is sizeof(header) + sizeof(padding) + payloadsize + sizeof(padding),
- *  in other words, the function will allocate more than specified. When 
+ *  in other words, the function will allocate more than specified. When
  *  the buffer is allocated, the content is zeroed.
  *  The function will also fill the field nlmsg_len with computed size.
  *  If the allocation must be for the specified size, just use malloc.
@@ -228,7 +228,7 @@ void nlmsg_free(struct nlmsg *nlmsg);
 
 /*
  * nlmsg_data : returns a pointer to the data contained in the netlink message
- * 
+ *
  * @nlmsg : the netlink message to get the data
  *
  * Returns a pointer to the netlink data or NULL if there is no data
index ec1eff2acaea57720aee71628a5f2f84e61fa691..861b211b3c2efa6922e8a41b5104746e674fb83e 100644 (file)
@@ -53,7 +53,7 @@ extern int rtnetlink_send(struct rtnl_handler *handler, struct rtnlmsg *rtnlmsg)
        return netlink_send(&handler->nlh, (struct nlmsg *)&rtnlmsg->nlmsghdr);
 }
 
-extern int rtnetlink_transaction(struct rtnl_handler *handler, 
+extern int rtnetlink_transaction(struct rtnl_handler *handler,
                          struct rtnlmsg *request, struct rtnlmsg *answer)
 {
        return netlink_transaction(&handler->nlh, (struct nlmsg *)&request->nlmsghdr,
index 63aca0ad891846f7d4a4bf6b6b7c0b5210246b06..6ef04966b0b881fb3308c9153e8bba8f67f50b6f 100644 (file)
@@ -30,7 +30,7 @@
 #define RTNLMSG_DATA(glh) ((void *)(NLMSG_DATA(glh) + RTNL_HDRLEN))
 
 /*
- * struct genl_handler : the structure which store the netlink handler 
+ * struct genl_handler : the structure which store the netlink handler
  *  and the family number
  *
  * @nlh: the netlink socket handler
@@ -105,6 +105,6 @@ void rtnlmsg_free(struct rtnlmsg *rtnlmsg);
  *
  * Returns 0 on success, < 0 otherwise
  */
-int rtnetlink_transaction(struct rtnl_handler *handler, 
+int rtnetlink_transaction(struct rtnl_handler *handler,
                          struct rtnlmsg *request, struct rtnlmsg *answer);
 #endif
index 03a4c6aa2ed5865a0f21d69dfaf6772230dd1177..494e837ad187d0777011ad6537f83ef9abfdf895 100644 (file)
@@ -54,7 +54,7 @@ c1:12345:respawn:/sbin/getty 38400 tty1 linux
 c2:12345:respawn:/sbin/getty 38400 tty2 linux
 c3:12345:respawn:/sbin/getty 38400 tty3 linux
 c4:12345:respawn:/sbin/getty 38400 tty4 linux
-p6::ctrlaltdel:/sbin/init 6 
+p6::ctrlaltdel:/sbin/init 6
 p0::powerfail:/sbin/init 0
 EOF
 
index 6e11d992cfd95ed63e36fcb3dc3cd14a485e076b..0d80643b369e08da87400baa041f546c8b28524f 100644 (file)
@@ -105,7 +105,7 @@ EOF
     # remove module stuff for iptables it just shows errors that are not
     # relevant in a container
     if [ -f "$container_rootfs/etc/sysconfig/iptables-config" ]; then
-       sed -i 's|IPTABLES_MODULES=".*|IPTABLES_MODULES=""|' $container_rootfs/etc/sysconfig/iptables-config 
+       sed -i 's|IPTABLES_MODULES=".*|IPTABLES_MODULES=""|' $container_rootfs/etc/sysconfig/iptables-config
        sed -i 's|IPTABLES_MODULES_UNLOAD=".*|IPTABLES_MODULES_UNLOAD="no"|' $container_rootfs/etc/sysconfig/iptables-config
     fi