Commit 3c05958272abfcbc57adf9ad836e72433ebae2e4

Authored by Perry Werneck
2 parents a695435a 4cd017f5

Merge branch 'master' of http://softwarepublico.gov.br/gitlab/pw3270/principal

src/plugins/hllapi/calls.cc
... ... @@ -59,7 +59,7 @@
59 59 return HLLAPI_STATUS_SYSTEM_ERROR;
60 60 }
61 61  
62   - return hSession ? HLLAPI_STATUS_SUCCESS : HLLAPI_STATUS_SYSTEM_ERROR;
  62 + return hSession ? HLLAPI_STATUS_SUCCESS : HLLAPI_STATUS_UNAVAILABLE;
63 63 }
64 64  
65 65 HLLAPI_API_CALL hllapi_deinit(void)
... ...
src/plugins/hllapi/hllapi.c
... ... @@ -135,10 +135,7 @@ static int connect_ps(char *buffer, unsigned short *length, unsigned short *rc)
135 135 buffer = tempbuffer;
136 136 }
137 137  
138   - if(hllapi_init(buffer) == 0)
139   - *rc = HLLAPI_STATUS_SUCCESS;
140   - else
141   - *rc = HLLAPI_STATUS_UNAVAILABLE;
  138 + *rc = hllapi_init(buffer);
142 139  
143 140 if(tempbuffer)
144 141 free(tempbuffer);
... ...