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=ecde7065f7b11a7a226d2f7b0e90e998a6347a59;hpb=d3a485135a98184cba28992752834a1bb4769003 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