~connman-maintainers/connman/head

Viewing all changes in revision 8162.

  • Committer: Daniel Wagner
  • Date: 2021-10-15 07:02:14 UTC
  • Revision ID: git-v1:dcd775c1c5e850e784d7aa0391bf20c8609bab3d
gsupplicant: Fix error return type

clang complains with:

gsupplicant/supplicant.c:1220:10: error: expression which evaluates to zero treated as a null pointer constant of type 'const char *' [-Werror,-Wnon-literal-null-conversion]
                return G_SUPPLICANT_MODE_UNKNOWN;
                       ^~~~~~~~~~~~~~~~~~~~~~~~~
gsupplicant/supplicant.c:1228:10: error: expression which evaluates to zero treated as a null pointer constant of type 'const char *' [-Werror,-Wnon-literal-null-conversion]
                return G_SUPPLICANT_SECURITY_UNKNOWN;
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Return NULL instead of the enum. In both cases the enum is 0, so there
is no change.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: