Skip to content

Commit

Permalink
Replace char pointer with char array in samples. (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
ActoryOu committed Jul 30, 2024
1 parent 2c64c25 commit 4b4d440
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/include/jobs.h
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ JobsStatus_t Jobs_StartNext( char * buffer,
* // The Following Example shows usage of the Jobs_StartNextMsg API
* // to generate a message string for a StartNextPendingJobExecution request.
*
* const char * clientToken = "test";
* const char clientToken[] = "test";
* size_t clientTokenLength = ( sizeof( clientToken ) - 1U );
* char messageBuffer[ START_JOB_MSG_LENGTH ] = {0};
* size_t messageLength = 0U;
Expand Down Expand Up @@ -881,8 +881,8 @@ JobsStatus_t Jobs_Update( char * buffer,
* // generate a message string for the UpdateJobExecution API
* // of the AWS IoT Jobs Service.
*
* const char * expectedVersion = "2";
* const chat * statusDetails = "{\"key\":\"value\"}";
* const char expectedVersion[] = "2";
* const char statusDetails[] = "{\"key\":\"value\"}";
* char messageBuffer[ UPDATE_JOB_MSG_LENGTH ] = {0};
* size_t messageLength = 0U;
*
Expand Down

0 comments on commit 4b4d440

Please sign in to comment.