From: Mazet Laurent Date: Wed, 7 May 2025 13:05:00 +0000 (+0200) Subject: cleaning X-Git-Tag: v1.0~29^2~8 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=fb56d9fbf55248d70362e5a8954941102775602f;p=morep.git cleaning --- diff --git a/morep.c b/morep.c index 41a39a0..f99bc5c 100644 --- 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"));