cleaning
authorMazet Laurent <laurent.mazet@thalesgroup.com>
Wed, 7 May 2025 13:05:00 +0000 (15:05 +0200)
committerMazet Laurent <laurent.mazet@thalesgroup.com>
Wed, 7 May 2025 13:05:00 +0000 (15:05 +0200)
morep.c

diff --git a/morep.c b/morep.c
index 41a39a053ac83e3d371976ded6665e00163e6fda..f99bc5c5dfb4d0ecef2aebdc77cd61d0cf49963e 100644 (file)
--- a/morep.c
+++ b/morep.c
@@ -119,7 +119,7 @@ void free_all_moreps (void)
     VERBOSE (morep, INFO, FPRINTF (stdout, "memory cleaned\n"));
 }
 
-void __attribute__((constructor)) _init_morep_ (void)
+void __attribute__ ((constructor)) _init_morep_ (void)
 {
     alloc_all_moreps ();
     atexit (free_all_moreps);
@@ -294,7 +294,7 @@ int MOREP_Connect (char *url)
         return -1;
     }
 
-    int sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
+    int sock = socket (PF_PACKET, SOCK_RAW, htons (ETH_P_ALL));
     if (sock < 0) {
         VERBOSE (morep, ERROR, PRINTF ("socket(): %s\n", strerror (errno)));
         VERBOSE (morep, ERROR, PRINTF ("Warning: you must be root to have raw access to sockets\n"));