From cb44d77656567b39db231beb45a3b49854382d3e Mon Sep 17 00:00:00 2001 From: rick Date: Mon, 23 Jan 2023 18:53:31 +0100 Subject: [PATCH] refactor code with linux convention --- .gitignore | 2 +- README.md | 2 ++ task_1/hello.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1b4d4e8..91b53c3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -reponse +reponses # Created by https://www.toptal.com/developers/gitignore/api/vim,c # Edit at https://www.toptal.com/developers/gitignore?templates=vim,c diff --git a/README.md b/README.md index d5897d5..5632fa7 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ Vous pouvez trouver des réponses (ainsi que des questions) À noter que j'utilise la commande `indent -linux` pour pouvoir indenter et formater les fichiers sources selon la convention du kernel Linux. +J'utilise aussi le script `checkpatch.pl -f` pour pouvoir vérifier plus en +profondeur si mes fichiers sources suivent bien la convention (cf. tache 4). ## Compilation diff --git a/task_1/hello.c b/task_1/hello.c index a90e96e..8fb0b9e 100644 --- a/task_1/hello.c +++ b/task_1/hello.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: GPL-2.0 + #include #include