]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app.h: Move declaration of ast_getdata_result before its first use
authorGeorge Joseph <gjoseph@sangoma.com>
Mon, 10 Jul 2023 13:52:32 +0000 (07:52 -0600)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Wed, 12 Jul 2023 17:44:50 +0000 (17:44 +0000)
commit8a864bcdba942ce3c9673ed1dd758e1596ada4b9
tree451243e033343db0728f68dfdf6b08a9ec8e1a21
parent508657879e8fe01e71b91dca486d607f9b50739e
app.h: Move declaration of ast_getdata_result before its first use

The ast_app_getdata() and ast_app_getdata_terminator() declarations
in app.h were changed recently to return enum ast_getdata_result
(which is how they were defined in app.c).  The existing
declaration of ast_getdata_result in app.h was about 1000 lines
after those functions however so under certain circumstances,
a "use before declaration" error was thrown by the compiler.
The declaration of the enum was therefore moved to before those
functions.

Resolves: #200
include/asterisk/app.h