]> Devoid-pointer.net GitWeb - libHPCS.git/commitdiff
Fix coding style issues
authorMichal Malý <madcatxster@devoid-pointer.net>
Wed, 10 Feb 2016 16:44:02 +0000 (17:44 +0100)
committerMichal Malý <madcatxster@devoid-pointer.net>
Wed, 10 Feb 2016 16:44:02 +0000 (17:44 +0100)
libhpcs.c

index 7d56eaa0718a40410d1f9a26b86a1eb14b625411..1d733c27ee3c1963d10111643e396045f2816b3d 100644 (file)
--- a/libhpcs.c
+++ b/libhpcs.c
@@ -167,7 +167,7 @@ enum HPCS_RetCode hpcs_read_mdata(const char* filename, struct HPCS_MeasuredData
                }
        }
 
-    switch (mdata->file_type) {
+       switch (mdata->file_type) {
        case HPCS_TYPE_CE_ANALOG:
            pret = read_signal(datafile, &mdata->data, &mdata->data_count, CE_WORK_PARAM_OLD_STEP, mdata->sampling_rate, gentype);
            break;
@@ -193,13 +193,13 @@ enum HPCS_RetCode hpcs_read_mdata(const char* filename, struct HPCS_MeasuredData
        case HPCS_TYPE_UNKNOWN:
            ret = HPCS_E_UNKNOWN_TYPE;
            goto out;
-    }
+       }
 
-    if (pret != PARSE_OK) {
+       if (pret != PARSE_OK) {
                PR_DEBUG("Cannot parse data in the file\n");
                ret = HPCS_E_PARSE_ERROR;
-    }
-    else
+       }
+       else
                ret = HPCS_OK;
 
 out: