1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:57:44 +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 <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
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.
typedef uint64_t NtpTimestamp;
struct [[gnu::packed]] NtpPacket {
struct [[gnu::packed]] NtpPacket
{
uint8_t li_vn_mode;
uint8_t stratum;
int8_t poll;

View file

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

View file

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

View file

@ -55,7 +55,6 @@
} \
} while (0)
int main(int, char**)
{
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.
*/
#include <AK/String.h>
#include <AK/QuickSort.h>
#include <AK/String.h>
#include <AK/Vector.h>
#include <LibCore/ArgsParser.h>
#include <stdio.h>