1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:17:34 +00:00

Meta+Userland: Make clang-format-10 clean

This commit is contained in:
Ben Wiederhake 2020-09-18 09:49:51 +02:00 committed by Andreas Kling
parent 934d4d4033
commit a2feef17bf
7 changed files with 27 additions and 31 deletions

View file

@ -31,8 +31,8 @@
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h>
#include <string.h> #include <string.h>
#include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
int main(int argc, char** argv) int main(int argc, char** argv)

View file

@ -42,7 +42,8 @@
// The fractional part in the lower 32 bits stores fractional bits times 2 ** 32. // The fractional part in the lower 32 bits stores fractional bits times 2 ** 32.
typedef uint64_t NtpTimestamp; typedef uint64_t NtpTimestamp;
struct [[gnu::packed]] NtpPacket { struct [[gnu::packed]] NtpPacket
{
uint8_t li_vn_mode; uint8_t li_vn_mode;
uint8_t stratum; uint8_t stratum;
int8_t poll; int8_t poll;

View file

@ -27,7 +27,6 @@
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
int main(int, char**) int main(int, char**)
{ {
if (reboot() < 0) { if (reboot() < 0) {
@ -36,6 +35,3 @@ int main(int, char**)
} }
return 0; return 0;
} }

View file

@ -25,8 +25,8 @@
*/ */
#include <AK/Vector.h> #include <AK/Vector.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/Account.h> #include <LibCore/Account.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/GetPassword.h> #include <LibCore/GetPassword.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View file

@ -55,7 +55,6 @@
} \ } \
} while (0) } while (0)
int main(int, char**) int main(int, char**)
{ {
int fd = open("/dev/zero", O_RDONLY); int fd = open("/dev/zero", O_RDONLY);

View file

@ -24,8 +24,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <AK/String.h>
#include <AK/QuickSort.h> #include <AK/QuickSort.h>
#include <AK/String.h>
#include <AK/Vector.h> #include <AK/Vector.h>
#include <LibCore/ArgsParser.h> #include <LibCore/ArgsParser.h>
#include <stdio.h> #include <stdio.h>