diff options
author | Martin Pool <mbp@sourcefrog.net> | 2001-02-27 03:06:43 +0000 |
---|---|---|
committer | Martin Pool <mbp@sourcefrog.net> | 2001-02-27 03:06:43 +0000 |
commit | 5ffc6e628e5ae6d429e9d02afcf4f3f63acc3b93 (patch) | |
tree | 9133f324e67e0a8ab15f22aaec2e287f7654bf68 /util.c | |
parent | ffb0adedea03935a7722ff2a23acce1e580d4310 (diff) | |
download | librsync-5ffc6e628e5ae6d429e9d02afcf4f3f63acc3b93.tar.gz |
Drop hs_readintarg, which is obsolete by popt.
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 21 |
1 files changed, 3 insertions, 18 deletions
@@ -1,8 +1,9 @@ /*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- - * rproxy -- dynamic caching and delta update in HTTP + * + * libhsync -- the library for network deltas * $Id$ * - * Copyright (C) 2000 by Martin Pool <mbp@samba.org> + * Copyright (C) 2000, 2001 by Martin Pool <mbp@samba.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -66,19 +67,3 @@ hs_alloc(size_t size, char const *name) return p; } - - - -void -hs_readintarg(char const *opt, char const *arg, int *out) -{ - char *o; - - *out = strtoul(arg, &o, 10); - if (*o != '\0') { - fprintf(stderr, "%s must have a positive integer argument\n", - opt); - exit(1); - } -} - |