changeset 1256:d88d5f88b77a

Rename variable.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 09 Mar 2015 17:43:09 +0200
parents f9bf71071f0b
children 60dc14a2e4c5
files minijss/jloadjss.c minijss/jloadxm.c
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/minijss/jloadjss.c	Sun Mar 08 01:59:52 2015 +0200
+++ b/minijss/jloadjss.c	Mon Mar 09 17:43:09 2015 +0200
@@ -310,13 +310,13 @@
 #endif
 
 
-int jssLoadJSSMOD(DMResource *inFile, JSSModule **ppModule, BOOL probe)
+int jssLoadJSSMOD(DMResource *inFile, JSSModule **pmodule, BOOL probe)
 {
     JSSModule *module;
     JSSMODHeader jssH;
     int index, ret = DMERR_OK;
 
-    *ppModule = NULL;
+    *pmodule = NULL;
 
     // Check the JSSMOD header
     if (!dmf_read_str(inFile, &jssH.idMagic, sizeof(jssH.idMagic)) ||
@@ -374,7 +374,7 @@
     }
 
     // Allocate the module
-    if ((*ppModule = module = jssAllocateModule()) == NULL)
+    if ((*pmodule = module = jssAllocateModule()) == NULL)
     {
         JSSERROR(DMERR_MALLOC, DMERR_MALLOC,
         "Could not allocate memory for module structure.\n");
--- a/minijss/jloadxm.c	Sun Mar 08 01:59:52 2015 +0200
+++ b/minijss/jloadxm.c	Mon Mar 09 17:43:09 2015 +0200
@@ -881,15 +881,15 @@
 
 /* Load XM-format module from given file-stream
  */
-int jssLoadXM(DMResource *inFile, JSSModule **ppModule, BOOL probe)
+int jssLoadXM(DMResource *inFile, JSSModule **pmodule, BOOL probe)
 {
     JSSModule *module;
     XMHeader xmH;
     int index, ret = DMERR_OK;
 
-    assert(ppModule != NULL);
+    assert(pmodule != NULL);
     assert(inFile != NULL);
-    *ppModule = NULL;
+    *pmodule = NULL;
 
     // Try to get the XM-header
     if (!dmf_read_str(inFile, &xmH.idMagic, sizeof(xmH.idMagic)) ||
@@ -1014,7 +1014,7 @@
         return DMERR_OK;
 
     // Okay, allocate a module structure
-    if ((*ppModule = module = jssAllocateModule()) == NULL)
+    if ((*pmodule = module = jssAllocateModule()) == NULL)
     {
         JSSERROR(DMERR_MALLOC, DMERR_MALLOC,
         "Could not allocate memory for module structure.\n");