xaizek / pinfo (License: GPLv2 only) (since 2018-12-07)
Console-based info and manual pages reader, which adds interactive navigation to man pages.
Commit bab5da863c490388b3a1bc0a4b697ecd3b4010cb

Fixed compiler warnings
git-svn-id: svn://svn.debian.org/svn/pinfo/pinfo/trunk@298 ea4b0d59-4df7-0310-a9f9-bf8cbe41ce66
Author: bas
Author date (UTC): 2006-03-16 15:07
Committer name: bas
Committer date (UTC): 2006-03-16 15:07
Parent(s): 5c64f19dcc101b847351b265bffbfc3e98497895
Signing key:
Tree: 36bb3d2c88696c89eb5ced36577574e55821ef0c
File Lines added Lines deleted
src/filehandling_functions.c 2 2
src/mainfunction.c 3 2
File src/filehandling_functions.c changed (mode: 100644) (index 12217cd..9a4c62e)
... ... opendirfile(int number)
579 579 char *bufend; /* points at the trailing 0 of initial name */ char *bufend; /* points at the trailing 0 of initial name */
580 580 char command[1128]; /* holds command to evaluate for decompression of file */ char command[1128]; /* holds command to evaluate for decompression of file */
581 581 int i, j; int i, j;
582 char *tmpfilename;
582 char *tmpfilename = NULL;
583 583 int *fileendentries = xmalloc(infopathcount * sizeof(int)); int *fileendentries = xmalloc(infopathcount * sizeof(int));
584 584 int dir_found = 0; int dir_found = 0;
585 585 int dircount = 0; int dircount = 0;
 
... ... addrawpath(char *filename)
845 845 { {
846 846 int len = strlen(filename); int len = strlen(filename);
847 847 int i, pos; int i, pos;
848 char tmp;
848 char tmp = '\0';
849 849 for (i = len; i >= 0; i--) for (i = len; i >= 0; i--)
850 850 { {
851 851 if (filename[i] == '/') if (filename[i] == '/')
File src/mainfunction.c changed (mode: 100644) (index cd6f3ff..70fdfa7)
... ... work(char ***message, char **type, long *lines, FILE * id, int tag_table_pos)
55 55 int key = 0; int key = 0;
56 56 int return_value; int return_value;
57 57 int statusline = FREE; int statusline = FREE;
58 char *token, *tmp;
58 char *token;
59 char *tmp = NULL;
59 60 if (rval.file) /* if the static variable was allocated, free it */ if (rval.file) /* if the static variable was allocated, free it */
60 61 { {
61 62 xfree(rval.file); xfree(rval.file);
 
... ... work(char ***message, char **type, long *lines, FILE * id, int tag_table_pos)
330 331 return_value = -1; return_value = -1;
331 332 if (indirect) /* the info is of indirect type; we'll search through several files */ if (indirect) /* the info is of indirect type; we'll search through several files */
332 333 { {
333 FILE *fd;
334 FILE *fd = NULL;
334 335 long tokenpos; long tokenpos;
335 336 long starttokenpos; long starttokenpos;
336 337 long filelen; long filelen;
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/pinfo

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/pinfo

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master