]> xenbits.xensource.com Git - libvirt.git/commitdiff
esx: Same order of arguments in definition and declaration
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sat, 22 Feb 2020 23:22:25 +0000 (00:22 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 24 Feb 2020 09:45:35 +0000 (10:45 +0100)
The order of arguments were not the same in the definition and
declaration. All callers use the same order as the definition, so there
is no bug, but change the function declaration to match the
implementation to avoid confusion.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/esx/esx_vi.h

index 5c60fd58f469038c2a87410e6a1ae7d5f39c71eb..b960c0900a785e1e33328bb2e7cf34dc5d48857f 100644 (file)
@@ -204,8 +204,8 @@ struct _esxVI_Context {
 
 int esxVI_Context_Alloc(esxVI_Context **ctx);
 void esxVI_Context_Free(esxVI_Context **ctx);
-int esxVI_Context_Connect(esxVI_Context *ctx, const char *ipAddress,
-                          const char *url, const char *username,
+int esxVI_Context_Connect(esxVI_Context *ctx, const char *url,
+                          const char *ipAddress, const char *username,
                           const char *password, esxUtil_ParsedUri *parsedUri);
 int esxVI_Context_LookupManagedObjects(esxVI_Context *ctx);
 int esxVI_Context_LookupManagedObjectsByPath(esxVI_Context *ctx, const char *path);