Deleted Added
full compact
dirname.c (1591) dirname.c (8874)
1/*-
2 * Copyright (c) 1991, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 102 unchanged lines hidden (view full) ---

111 }
112
113 /*
114 * (6) If the remaining string is //, it is implementation defined
115 * whether steps (7) and (8) are skipped or processed.
116 *
117 * This case has already been handled, as part of steps (1) and (2).
118 */
1/*-
2 * Copyright (c) 1991, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 102 unchanged lines hidden (view full) ---

111 }
112
113 /*
114 * (6) If the remaining string is //, it is implementation defined
115 * whether steps (7) and (8) are skipped or processed.
116 *
117 * This case has already been handled, as part of steps (1) and (2).
118 */
119
119
120 /*
121 * (7) If there are any trailing slash characters in string, they
122 * shall be removed.
123 */
124 while (--p >= *argv)
125 if (*p != '/')
126 break;
127 ++p;

--- 17 unchanged lines hidden ---
120 /*
121 * (7) If there are any trailing slash characters in string, they
122 * shall be removed.
123 */
124 while (--p >= *argv)
125 if (*p != '/')
126 break;
127 ++p;

--- 17 unchanged lines hidden ---