Skip to content

Commit 1d33c50

Browse files
committed
more compile fixes for rh7.3
1 parent 27386ba commit 1d33c50

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

names.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
* Use hashes to speed things up
44
*/
55

6-
#include <glib.h>
7-
#include "config.h"
8-
#include <pwd.h>
9-
#include <grp.h>
10-
11-
#include <stdio.h>
6+
#include "rdup.h"
127

138
/* lookup the uid belonging to username
149
* if the uid is not found, return uid_given

rdup-up.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ main(int argc, char **argv)
132132
struct sigaction sa;
133133
char pwd[BUFSIZE + 1];
134134
int c;
135+
guint i;
135136
char *path;
136137

137138
#ifdef ENABLE_NLS
@@ -205,7 +206,6 @@ main(int argc, char **argv)
205206
opt_path_strip = g_strdup_printf("%s/", opt_path_strip);
206207

207208
/* count the number of labels */
208-
guint i;
209209
for(i = 0; i < strlen(opt_path_strip); i++) {
210210
if (opt_path_strip[i] == '/')
211211
opt_path_strip_len++;

0 commit comments

Comments
 (0)