X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=CODING_STYLE;h=4ec5923d3d19aadcf304d9f5cdec535efa4e09ae;hp=996897bcde976479faf2845d6ca7a5f6f9930250;hb=865cc19a34cd9a3ff98a7b3754747f4904f56faa;hpb=623538c3125fd0174513e4ef5b0e6163f4ea41ef diff --git a/CODING_STYLE b/CODING_STYLE index 996897bcd..4ec5923d3 100644 --- a/CODING_STYLE +++ b/CODING_STYLE @@ -16,7 +16,7 @@ half-initialized objects, too - Error codes are returned as negative Exxx. i.e. return -EINVAL. There - are some exceptions: for constructors its is OK to return NULL on + are some exceptions: for constructors it is OK to return NULL on OOM. For lookup functions NULL is fine too for "not found". Be strict with this. When you write a function that can fail due to