aboutsummaryrefslogtreecommitdiff
path: root/src/mm-callback-info.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mm-callback-info.c')
-rw-r--r--src/mm-callback-info.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mm-callback-info.c b/src/mm-callback-info.c
index c738b704..bbe6cb88 100644
--- a/src/mm-callback-info.c
+++ b/src/mm-callback-info.c
@@ -15,7 +15,9 @@
*/
#include "mm-callback-info.h"
-#include "mm-errors.h"
+
+#include <ModemManager.h>
+#include <mm-errors-types.h>
#define CALLBACK_INFO_RESULT "callback-info-result"
@@ -68,8 +70,8 @@ modem_destroyed_cb (gpointer data, GObject *destroyed)
/* Overwrite any possible previous error set */
g_clear_error (&(info->error));
- info->error = g_error_new_literal (MM_MODEM_ERROR,
- MM_MODEM_ERROR_REMOVED,
+ info->error = g_error_new_literal (MM_CORE_ERROR,
+ MM_CORE_ERROR_ABORTED,
"The modem was removed.");
/* Only schedule the info if not already done before */