Skip to content

Commit

Permalink
upstream: Fix warnings caused by user_from_uid() and group_from_gid()
Browse files Browse the repository at this point in the history
now returning const char *.

OpenBSD-Commit-ID: b5fe571ea77cfa7b9035062829ab05eb87d7cc6f
  • Loading branch information
millert@openbsd.org authored and djmdjm committed Sep 14, 2018
1 parent 0aa1f23 commit 488c932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sftp-common.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: sftp-common.c,v 1.30 2017/06/10 06:36:46 djm Exp $ */
/* $OpenBSD: sftp-common.c,v 1.31 2018/09/13 15:23:32 millert Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
* Copyright (c) 2001 Damien Miller. All rights reserved.
Expand Down Expand Up @@ -215,7 +215,7 @@ ls_file(const char *name, const struct stat *st, int remote, int si_units)
{
int ulen, glen, sz = 0;
struct tm *ltime = localtime(&st->st_mtime);
char *user, *group;
const char *user, *group;
char buf[1024], lc[8], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1];
char sbuf[FMT_SCALED_STRSIZE];
time_t now;
Expand Down

0 comments on commit 488c932

Please sign in to comment.