setenv: allow compilation with C++
authorEric Blake <eblake@redhat.com>
Fri, 16 Apr 2010 20:21:29 +0000 (14:21 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 16 Apr 2010 21:40:18 +0000 (15:40 -0600)
commite37c1207ef427c4af2b5d16050e0e548e6384b4a
treea60f5a3b47ad1c83db13b59f2e2dd8d108d4aced
parentfb4c917f856c580b7bd78779b5f8501918fe1690
setenv: allow compilation with C++

* lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
register keyword.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/setenv.c