From c112e19896921810fe469ef93a268f5431fad93d Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 8 Nov 2011 17:56:18 +0100 Subject: [PATCH] port-probe: properly handle Core errors Fixes compilation of the Port Probe object. --- src/mm-port-probe.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mm-port-probe.c b/src/mm-port-probe.c index 55a91954..94a85871 100644 --- a/src/mm-port-probe.c +++ b/src/mm-port-probe.c @@ -19,6 +19,10 @@ #include #include +#include + +#include + #include "mm-port-probe.h" #include "mm-errors.h" #include "mm-log.h" @@ -238,7 +242,7 @@ serial_probe_qcdm (MMPortProbe *self) FALSE, FALSE, g_error_new (MM_CORE_ERROR, - MM_CORE_ERROR_INVALID, + MM_CORE_ERROR_FAILED, "(%s) Couldn't create QCDM port", self->priv->name)); return FALSE; @@ -631,7 +635,7 @@ serial_open_at (MMPortProbe *self) FALSE, FALSE, g_error_new (MM_CORE_ERROR, - MM_CORE_ERROR_INVALID, + MM_CORE_ERROR_FAILED, "(%s) couldn't create AT port", self->priv->name)); return FALSE;