diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-28 19:50:40 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-28 19:50:40 -0700 |
commit | 7f7f8cd60795c9503156950d518caa04b30a94a2 (patch) | |
tree | f1941cdf53af7689345088e0b0c43ec9ccae59da /parsedpy.c | |
parent | eb5ed59c623aa360677f62a7fd6e398ee9f3cab5 (diff) |
Strip trailing whitespace
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}'
git diff -w & git diff -b show no diffs from this change
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'parsedpy.c')
-rw-r--r-- | parsedpy.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -2,7 +2,7 @@ * * parse_displayname - utility routine for splitting up display name strings * - * + * Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its @@ -83,7 +83,7 @@ copyhostname (void) { char buf[256]; - return (get_local_hostname (buf, sizeof buf) ? + return (get_local_hostname (buf, sizeof buf) ? copystring (buf, strlen (buf)) : NULL); } #endif @@ -91,8 +91,8 @@ copyhostname (void) /* * parse_displayname - display a display string up into its component parts */ -Bool -parse_displayname (char *displayname, +Bool +parse_displayname (char *displayname, int *familyp, /* return */ char **hostp, /* return */ int *dpynump, /* return */ @@ -180,7 +180,7 @@ parse_displayname (char *displayname, free (host); return False; } - + dpynum = atoi (ptr); /* it will handle num. as well */ ptr = cp; } @@ -232,4 +232,4 @@ parse_displayname (char *displayname, return True; } - + |