httpdirfs/src
Nathaniel Wesley Filardo 833cbf9d67 Correct error message in FREE().
`FREE()` checks for a `NULL` pointer, but generally httpdirfs does not
`NULL` out pointers it attempts to `FREE()` (or `free()`).  As such, the
error message is misleading; make it less so in a trivial way.

Possibly a better, more invasive, change would be for `FREE()` to take a
`void** pp`, check that `*p != NULL`, `free(*p)`, and then `*p = NULL;`.
Were that done, then there would be some plausibility to the current
diagnostic message.
2022-11-01 01:59:03 +00:00
..
README.md changed indentation style 2021-08-31 11:18:39 +01:00
cache.c adjusted includes 2021-09-03 21:39:31 +01:00
cache.h periodic backup 2021-09-04 03:00:25 +01:00
config.c fixed --version switch 2022-04-23 02:49:16 +01:00
config.h Added single file mode 2021-08-31 13:52:25 +01:00
fuse_local.c fs_open: return EROFS for non-RO opens 2022-06-28 15:00:48 +01:00
fuse_local.h Tidied up some of the comments and formatting 2019-09-01 08:52:18 +01:00
link.c Clean up for the master branch 2021-09-04 12:41:33 +01:00
link.h adjusted includes 2021-09-03 21:39:31 +01:00
log.c fixed --version switch 2022-04-23 02:49:16 +01:00
log.h Clean up for the master branch 2021-09-04 12:41:33 +01:00
main.c getopt_long returns an int, not a char 2022-06-28 14:45:31 +01:00
memcache.c Clean up for the master branch 2021-09-04 12:41:33 +01:00
memcache.h Clean up for the master branch 2021-09-04 12:41:33 +01:00
network.c moved the location of error string 2021-09-04 13:37:45 +01:00
network.h started writing the ramcache 2021-09-04 01:28:01 +01:00
sonic.c Clean up for the master branch 2021-09-04 12:41:33 +01:00
sonic.h moved the *sonic related fields into a separate struct 2021-09-01 21:29:13 +01:00
util.c Correct error message in FREE(). 2022-11-01 01:59:03 +00:00
util.h more refactoring 2021-09-03 14:56:11 +01:00

README.md

Coding Convention

  • External variables: capital letters
  • Static global variables: lower case letters
  • Function names: TypeName_verb or verb_noun
  • Type names: camel case with the first letter capitalised, e.g. CamelCase
  • Indentation style: indent -kr -nut *.c *.h