aboutsummaryrefslogtreecommitdiffstats
path: root/pbx/pbx_gtkconsole.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-26 20:02:27 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-26 20:02:27 +0000
commitdf53774db69f044643962a9f6af6290b3d2ee71d (patch)
tree3713c05a6de35fa07fef058395c44f56f2b0e69d /pbx/pbx_gtkconsole.c
parent4d04a3258e50f0c5d5103bd9eef6cec335d93056 (diff)
Use defined return values in load_module in more places.
(closes issue #11096) Patches: pbx_config.c.patch uploaded by moy (license 222) pbx_dundi.c.patch uploaded by moy (license 222) pbx_gtkconsole.c.patch uploaded by moy (license 222) pbx_loopback.c.patch uploaded by moy (license 222) pbx_realtime.c.patch uploaded by moy (license 222) pbx_spool.c.patch uploaded by moy (license 222) app_adsiprog.c.patch uploaded by moy (license 222) app_alarmreceiver.c.patch uploaded by moy (license 222) app_amd.c.patch uploaded by moy (license 222) app_authenticate.c.patch uploaded by moy (license 222) app_cdr.c.patch uploaded by moy (license 222) app_zapateller.c.patch uploaded by moy (license 222) app_zapbarge.c.patch uploaded by moy (license 222) app_zapras.c.patch uploaded by moy (license 222) app_zapscan.c.patch uploaded by moy (license 222) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94806 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/pbx_gtkconsole.c')
-rw-r--r--pbx/pbx_gtkconsole.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pbx/pbx_gtkconsole.c b/pbx/pbx_gtkconsole.c
index 9017d7459..2cf466526 100644
--- a/pbx/pbx_gtkconsole.c
+++ b/pbx/pbx_gtkconsole.c
@@ -230,7 +230,7 @@ static int reload_module(void *mod)
}
}
- return 0;
+ return AST_MODULE_LOAD_SUCCESS;
}
static void file_ok_sel(GtkWidget *w, GtkFileSelection *fs)
@@ -473,7 +473,7 @@ static int load_module(void *mod)
{
if (pipe(clipipe)) {
ast_log(LOG_WARNING, "Unable to create CLI pipe\n");
- return -1;
+ return AST_MODULE_LOAD_FAILURE;
}
g_thread_init(NULL);
if (gtk_init_check(NULL, NULL)) {
@@ -489,7 +489,7 @@ static int load_module(void *mod)
else
ast_verb(2, "GTK is not available -- skipping monitor\n");
}
- return 0;
+ return AST_MODULE_LOAD_SUCCESS;
}
static const char *description(void)