Skip to content

Commit

Permalink
improve const correctness for isDpartEmpty method.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktarbet committed Nov 26, 2024
1 parent 081ce9b commit d4a39b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion heclib/heclib_c/src/Internal/isDpartEmpty.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/// </summary>
/// <param name="pathname"></param>
/// <returns>returns 1 if D part is blank/empty, otherwise return 0 </returns>
int isDpartEmpty(char* pathname) {
int isDpartEmpty(const char* pathname) {
char dPart[MAX_PART_SIZE];
int partNumber = 4; //A=1, B=2, C=3, D=4
int length = zpathnameGetPart(pathname, partNumber, dPart, sizeof(dPart));
Expand Down
2 changes: 1 addition & 1 deletion heclib/heclib_c/src/headers/hecdss7.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void zmaxPart(long long *ifltab, int *maxParts);
void zmaxPart7(long long *ifltab, int *maxParts);
int ztsGetEPartFromInterval(int intervalSeconds, char *ePart, size_t sizeofEpart);
char* zsetCollectionSequence(char* pathname, int sequenceNumber);
int isDpartEmpty(char* pathname);
int isDpartEmpty(const char* pathname);

// Missing data
float zmissingFlag(); // Returns float missing flag
Expand Down

0 comments on commit d4a39b6

Please sign in to comment.