#include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
+#include <ctype.h>
 
 #include <cadef.h>
 
 #include "param.h"
 
 static void Param_copyToAllocMem(struct event_handler_args args);
-static void *Param_returnPVName(const char *, const char *, char *);
+static void Param_returnPVName(const char *, const char *, char *);
 static void Param_strerror(Param *, const char *);
 
 int conParam(Param *my)
                for (i = 0 ; i < *rows ; i++) {
                        val[i] = strtoul(value[i], &endptr, 0);
                        if(*endptr != '\0') {
-                               Param_strerror((Param *) my, "Value seems not to be integer.\n");
+                               Param_strerror((Param *) my, "Value seems not to be integer.");
                                retVal = -1;
                        }
                }
 int Param_getStringArray(const Param *my, const char *name, const char *idx, int maxrows, int *rows, char **val)
 {
        int retVal = 0;
-       int i;
        int status;
        int found = 1;
        chid chan;
        int i;
        ParamResult *result = args.usr;
        dbr_string_t *buffer = (dbr_string_t *) args.dbr;
-       (int *) result->rows;
-       (int) result->maxrows;
-       (char **) result->val;
-       (const Param*) result->my;
-       (int *) result->retVal;
        
        *(result->rows) = (args.count > result->maxrows) ?
                result->maxrows :
                args.count;
        if(args.type == DBR_STRING && args.status == ECA_NORMAL) {
-#if 1
-               if(*(result->rows) == 1) {
-                       strcpy(result->val[0], buffer);
-               } else {
-#endif
-                       for(i = 0 ; i < *(result->rows) ; i++) {
-                               strcpy((result->val)[i], buffer[i]);
-                       }
-#if 1
+               for(i = 0 ; i < *(result->rows) ; i++) {
+                       strcpy((result->val)[i], buffer[i]);
                }
-#endif
        } else {
                Param_strerror((Param *) result->my, ca_message(args.status));
                *(result->rows) = 0;
        }
 }
 
-static void *Param_returnPVName(const char *name, const char *idx, char *pPVName)
+static void Param_returnPVName(const char *name, const char *idx, char *pPVName)
 {
        int i;
 
 
 
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 #include <ctype.h>
 
 #include <oraca.h>
 
 #include "param.h"
 
-static void Param_rollback(int *);
+static void Param_rollback();
 
 static void Param_strerror(const Param *, const char *);
 
        char *endptr;
 
        EXEC SQL WHENEVER SQLERROR DO Param_strerror(my, sqlca.sqlerrm.sqlerrmc);
-       EXEC SQL WHENEVER SQLERROR DO Param_rollback(&retVal);
+       EXEC SQL WHENEVER SQLERROR DO Param_rollback();
 
        EXEC SQL BEGIN DECLARE SECTION;
        const char* un;
                value[i][j + 1] = '\0';
                val[i] = strtoul(value[i], &endptr, NULL);
                if(*endptr != '\0') {
-                       Param_strerror(my, "Value seems to be no integer.\n");
+                       Param_strerror(my, "Value seems to be no integer.");
                        *rows = 0;
                        return -1;
                }
        int i;
 
        EXEC SQL WHENEVER SQLERROR DO Param_strerror(my, sqlca.sqlerrm.sqlerrmc);
-       EXEC SQL WHENEVER SQLERROR DO Param_rollback(&retVal);
+       EXEC SQL WHENEVER SQLERROR DO Param_rollback();
 
        EXEC SQL BEGIN DECLARE SECTION;
        const char* un;
        }
 }
 
-static void Param_rollback(int *retVal) {
-       *retVal = -1;
+static void Param_rollback() {
        EXEC SQL ROLLBACK RELEASE;
 }
 
 
 
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 #include <ctype.h>
 
 #include <libpq-fe.h>
 
        result = PQexec(conn, query);
        if(PQresultStatus(result) != PGRES_TUPLES_OK) {
-               Param_strerror((Param *) my, "The PostgreSQL query result is not correct.\n");
+               Param_strerror((Param *) my, "The PostgreSQL query result is not correct.");
                return -1;
        }
        fnum = PQfnumber(result, "value");
        for (i = 0 ; i < *rows ; i++) {
                val[i] = strtoul(PQgetvalue(result, i, fnum), &endptr, 0);
                if(*endptr != '\0') {
-                       Param_strerror((Param *) my, "Value seems to be no integer.\n");
+                       Param_strerror((Param *) my, "Value seems to be no integer.");
                        *rows = 0;
                        return -1;
                }
 
        result = PQexec(conn, query);
        if(PQresultStatus(result) != PGRES_TUPLES_OK) {
-               Param_strerror((Param *) my, "The PostgreSQL query result is not correct.\n");
+               Param_strerror((Param *) my, "The PostgreSQL query result is not correct.");
                return -1;
        }
        fnum = PQfnumber(result, "value");
 
 #include <unistd.h>
 
 #include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
+#include <stdlib.h>
 #include <ctype.h>
 
 #include "param.h"
 {
        int retVal = 0;
        int i;
-       int row;
        char lname[PARAM_MAX_NAME_LEN];
        char lidx[PARAM_MAX_NAME_LEN];