[Fix] Correct the enum type to be compare 19/186819/1
authorMayank Haarit <mayank.h@samsung.com>
Tue, 14 Aug 2018 15:33:12 +0000 (21:03 +0530)
committerMayank Haarit <mayank.h@samsung.com>
Tue, 14 Aug 2018 15:33:12 +0000 (21:03 +0530)
Change-Id: If4cf4004e65f598c7b2bc40bbade2f0a503e337c
Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
src/inm-manager.c

index 30e6a69b1fce47a87ac34095087780c7d84328f7..134cb88003ba1f1787b6804f575a306bde8b151a 100644 (file)
@@ -90,7 +90,7 @@ int inm_manager_set_tcpdump(gboolean state)
 
        if (ret == INM_DUMP_IN_PROGRESS)
                ret = INM_MANAGER_ERROR_IN_PROGRESS;
-       else if (ret == INM_MANAGER_ERROR_OPERATION_FAILED)
+       else if (ret == INM_DUMP_OPERATION_FAILED)
                ret = INM_MANAGER_ERROR_OPERATION_FAILED;
        else if (ret == INM_DUMP_ERROR_NONE)
                ret = INM_MANAGER_ERROR_NONE;