Skip to content

Commit 9cbdaf4

Browse files
committed
update
1 parent 45376c9 commit 9cbdaf4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

distribute.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <stdlib.h>
55
#include <string.h>
66
#include <math.h>
7+
#define STR_SIZE 20
78

89
// Declarations
910
int generate_priority(int minPrio, int maxPrio);
@@ -20,7 +21,7 @@ int generate_priority(int minPrio, int maxPrio)
2021
return num;
2122
}
2223

23-
int generate_process_length(char *distPL, int avgPL, int minPL, int maxPL)
24+
int generate_process_length(char distPL[STR_SIZE], int avgPL, int minPL, int maxPL)
2425
{
2526
if ( strcmp(distPL, "fixed") == 0 )
2627
{
@@ -48,7 +49,7 @@ int generate_process_length(char *distPL, int avgPL, int minPL, int maxPL)
4849
return -1;
4950
}
5051

51-
int generate_interarrival_time(char *distIAT, int avgIAT, int minIAT, int maxIAT)
52+
int generate_interarrival_time(char distIAT[STR_SIZE], int avgIAT, int minIAT, int maxIAT)
5253
{
5354
if ( strcmp(distIAT, "fixed") == 0 )
5455
{

0 commit comments

Comments
 (0)