Преглед на файлове

ncd: modules: ref: return NULL not 0

ambrop7 преди 14 години
родител
ревизия
00be0b963e
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      ncd/modules/ref.c

+ 2 - 2
ncd/modules/ref.c

@@ -125,7 +125,7 @@ static NCDModuleInst * refhere_func_getobj (void *vo, const char *objname)
     // We don't redirect methods, and there will never be an object
     // We don't redirect methods, and there will never be an object
     // with empty name. Fail here so we don't report non-errors.
     // with empty name. Fail here so we don't report non-errors.
     if (!strcmp(objname, "")) {
     if (!strcmp(objname, "")) {
-        return 0;
+        return NULL;
     }
     }
     
     
     return NCDModuleInst_Backend_GetObj(o->i, objname);
     return NCDModuleInst_Backend_GetObj(o->i, objname);
@@ -215,7 +215,7 @@ static NCDModuleInst * ref_func_getobj (void *vo, const char *objname)
     // We don't redirect methods, and there will never be an object
     // We don't redirect methods, and there will never be an object
     // with empty name. Fail here so we don't report non-errors.
     // with empty name. Fail here so we don't report non-errors.
     if (!strcmp(objname, "")) {
     if (!strcmp(objname, "")) {
-        return 0;
+        return NULL;
     }
     }
     
     
     return NCDModuleInst_Backend_GetObj(o->rh->i, objname);
     return NCDModuleInst_Backend_GetObj(o->rh->i, objname);