summaryrefslogtreecommitdiff
path: root/app/xterm/xstrings.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2014-01-02 15:14:51 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2014-01-02 15:14:51 +0000
commit238f00af31ce204960b9b467fdbd78b8e38388fa (patch)
treead1913177a96d700ac268b3f056d27e18c66ae14 /app/xterm/xstrings.c
parente9de148a5dd84cc98019847738a1c0a6e9de0242 (diff)
Update to xterm-300. Tested by ajacoutot@ and shadchin@.
Diffstat (limited to 'app/xterm/xstrings.c')
-rw-r--r--app/xterm/xstrings.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/xterm/xstrings.c b/app/xterm/xstrings.c
index 9b0e1a868..0f2f158d8 100644
--- a/app/xterm/xstrings.c
+++ b/app/xterm/xstrings.c
@@ -1,4 +1,4 @@
-/* $XTermId: xstrings.c,v 1.57 2013/02/03 22:11:25 tom Exp $ */
+/* $XTermId: xstrings.c,v 1.58 2013/11/18 01:40:43 tom Exp $ */
/*
* Copyright 2000-2012,2013 by Thomas E. Dickey
@@ -216,7 +216,7 @@ x_getlogin(uid_t uid, struct passwd *in_out)
* result via the given pointer. On failure, wipes the data to prevent use.
*/
Boolean
-x_getpwnam(const char *name, struct passwd * result)
+x_getpwnam(const char *name, struct passwd *result)
{
struct passwd *ptr = getpwnam(name);
Boolean code;
@@ -236,7 +236,7 @@ x_getpwnam(const char *name, struct passwd * result)
* result via the given pointer. On failure, wipes the data to prevent use.
*/
Boolean
-x_getpwuid(uid_t uid, struct passwd * result)
+x_getpwuid(uid_t uid, struct passwd *result)
{
struct passwd *ptr = getpwuid((uid_t) uid);
Boolean code;
@@ -431,7 +431,7 @@ x_strindex(char *s1, const char *s2)
char *s3;
size_t s2len = strlen(s2);
- while ((s3 = strchr(s1, *s2)) != NULL) {
+ while ((s3 = (strchr) (s1, *s2)) != NULL) {
if (strncmp(s3, s2, s2len) == 0)
return (s3);
s1 = ++s3;