diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-01-19 22:32:08 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-01-19 22:32:08 +0200 |
commit | d7a1f3c8494e0546fc4c31d22b390a87ea9bd21a (patch) | |
tree | 4654d5039eeeb35bdb4d004acee07c0263c70532 /src/ipc.c | |
parent | 24f08563cf6392082c18a73e20f077bec3bdb92e (diff) |
inline string to number conversion
Diffstat (limited to 'src/ipc.c')
-rw-r--r-- | src/ipc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -81,10 +81,10 @@ static inline int ipc_sem_get_limits(struct ipc_limits *lim) { if(procfile_lines(ff) >= 1 && procfile_linewords(ff, 0) >= 4) { lim->semvmx = SEMVMX; - lim->semmsl = atoi(procfile_lineword(ff, 0, 0)); - lim->semmns = atoi(procfile_lineword(ff, 0, 1)); - lim->semopm = atoi(procfile_lineword(ff, 0, 2)); - lim->semmni = atoi(procfile_lineword(ff, 0, 3)); + lim->semmsl = str2i(procfile_lineword(ff, 0, 0)); + lim->semmns = str2i(procfile_lineword(ff, 0, 1)); + lim->semopm = str2i(procfile_lineword(ff, 0, 2)); + lim->semmni = str2i(procfile_lineword(ff, 0, 3)); return 0; } else { |