]> git.pld-linux.org Git - packages/bsd-finger.git/commitdiff
- set haslocale in main()
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 9 Feb 2010 13:34:23 +0000 (13:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bsd-finger-wide-char-support5.patch -> 1.3

bsd-finger-wide-char-support5.patch

index 37f513f406083622d95fb085149c89dacbbbd203..734004e69cb2da91ff7696a0b46bab80ca430e80 100644 (file)
@@ -8,16 +8,16 @@
  #include "finger.h"
  #include "../version.h"
  
-@@ -286,6 +287,9 @@
-       struct utmp *uptr;
-       int dolocal, *used;
+@@ -96,6 +96,9 @@
+       struct sockaddr_in sin;
+       socklen_t slen = sizeof(sin);
  
 +      if (setlocale (LC_ALL, "") != NULL)
 +              set_haslocale();
 +
-       used = calloc(argc, sizeof(int));
-       if (!used) {
-               eprintf("finger: out of space.\n");
+       while ((ch = getopt(argc, argv, "lmps")) != EOF) {
+               switch(ch) {
+                 case 'l':
 --- bsd-finger-0.17/finger/finger.h.widechar   2005-12-15 09:14:17.000000000 +0100
 +++ bsd-finger-0.17/finger/finger.h    2005-12-15 09:14:18.000000000 +0100
 @@ -117,3 +117,8 @@
This page took 0.070208 seconds and 4 git commands to generate.