From: Erez Zadok Date: Wed, 14 Sep 2005 00:27:55 +0000 (+0000) Subject: no trailing whitespaces X-Git-Tag: before-clocktime-fixes~3 X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=32b39380f1dac9570aac88b11108ed2adf6e315b;p=am-utils-6.1.git no trailing whitespaces --- diff --git a/amd/sun_map.c b/amd/sun_map.c index 79992c9..27e7c94 100644 --- a/amd/sun_map.c +++ b/amd/sun_map.c @@ -529,14 +529,14 @@ sun_entry2amd(const char *key, const char *s_entry_str) plog(XLOG_ERROR,"Sun entry value was null"); goto err; } - + /* Make sure there are no trailing white spaces or '\n'. */ xstrlcpy(line_buff, s_entry_str, sizeof(line_buff)); ws = strlen(line_buff) - 1; while (ws >= 0 && (isspace((int)line_buff[ws]) || line_buff[ws] == '\n')) { line_buff[ws--] = '\0'; } - + /* Parse the sun entry line. */ s_entry = sun_map_parse_read(line_buff); if (s_entry == NULL) {